Parameters for configuring commit action tool (WRITE pattern). Creates a tool that executes actions and modifies system state.
toolName: string
The name of the tool to be created.
function: { name: string; description: string; parameters: { type: string; required: string[]; properties: { [key: string]: { type: string; description: string; enum?: string[]; }; }; }; } | ((clientId: string, agentName: string) => { ...; } | Promise<...>)
Tool function schema (name, description, parameters).
docNote: string
Optional documentation note for the tool.
isAvailable: (clientId: string, agentName: string, toolName: string) => boolean | Promise<boolean>
Optional function to determine if the tool is available.