Skip to main content

createTool(config)

Creates a typed tool. Also re-exported from @cline/agents and @cline/core.
inputSchema can be either JSON Schema or a Zod schema.

AgentTool

Defaults from createTool:

AgentToolContext

ToolPolicy

Tool names not listed in a policy map default to enabled and auto-approved.

ToolCallRecord