Function: createToolEnhancer()
ts
function createToolEnhancer(toolName, config): (errorXml, actionKey) => string;Defined in: packages/core/src/introspection/ContractAwareSelfHealing.ts:153
Create a tool-scoped self-healing enhancer.
This is the primary integration point: wraps a per-tool error formatter with contract delta context.
Parameters
| Parameter | Type | Description |
|---|---|---|
toolName | string | The tool name for delta lookup |
config | SelfHealingConfig | Self-healing configuration |
Returns
A function that enriches error strings
ts
(errorXml, actionKey): string;Parameters
| Parameter | Type |
|---|---|
errorXml | string |
actionKey | string |
Returns
string