Skip to content

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

ParameterTypeDescription
toolNamestringThe tool name for delta lookup
configSelfHealingConfigSelf-healing configuration

Returns

A function that enriches error strings

ts
(errorXml, actionKey): string;

Parameters

ParameterType
errorXmlstring
actionKeystring

Returns

string