Type: url

Original: https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/programmatic-tool-calling

Status: generated

Language: en

Summary

This page of Anthropic’s Claude API documentation describes programmatic tool calling, in which Claude writes Python code that calls developer-defined tools from inside a code execution container instead of making one model round trip per tool call, so that intermediate results are filtered or aggregated in code and only the final output enters Claude’s context. It covers the allowed_callers and caller fields, the container lifecycle and timeouts, the request-and-result workflow, constraints and incompatibilities, Anthropic’s reported token-efficiency measurements, guidance on which workloads benefit, and alternative self-hosted implementations of the same pattern.

Generated pages