Skip to main content
Version: 0.19.0

Function: withToolLabels()

function withToolLabels(labels, formatAction?): (toolName, toolInput) => string;

Defined in: core/toolLabels.ts:95

A formatAction that shows the tools in labels() with their label, and any other with formatAction (the kit's by default). labels is read on every call, so it can follow the session in use (/resume opens another).

Parameters​

ParameterType
labels() => | Readonly<Record<string, ToolLabel>> | undefined
formatAction(toolName, toolInput) => string

Returns​

(toolName, toolInput) => string