Saltar al contenido principal
Versión: 0.20.0

Function: createFriendlyToolLabel()

function createFriendlyToolLabel(options?): (toolName, toolInput) => string;

Defined in: core/toolLabels.ts:124

Builds a friendlyToolLabel(toolName, toolInput) — describe lets the host agent layer its own domain-specific cases (e.g. Playwright's browser_* tools) on top of this kit's generic ones; extraLocalServers names any additional MCP server (beyond this kit's own "approvals"/"manualLogin"/"time") whose tools should be unwrapped without a "[server] " prefix, e.g. "playwright".

Parameters​

ParameterType
options{ describe?: ToolDescriber; extraLocalServers?: readonly string[]; }
options.describe?ToolDescriber
options.extraLocalServers?readonly string[]

Returns​

(toolName, toolInput) => string