Skip to main content
Code Guide
Architecture API

tool_choice

Anthropic API parameter controlling tool invocation: `auto` (model decides), `any` (must invoke a tool), `{"type": "tool", "name": "X"}` (force a specific tool), `none` (disable all tools). The forced-tool pattern is the standard approach for guaranteed structured output.