[KongchangAI]
Concept编程式工具调用

Programmatic Tool Calling

A tool-calling paradigm introduced with GPT-5.6 that allows the model to write JavaScript scripts to orchestrate tools and filter intermediate results, reducing token consumption by approximately 65%. It represents a shift in tool calling from a conversational to a programmatic approach.

Core Facts

Timeline (last 90 days)

Nov 27

Programmatic Tool Calling means agents invoke tools by generating code rather than relying solely on structured JSON instructions, which can handle more complex logic and reduce round-trip communication overhead.

Unverified50%
Nov 15

Code Mode currently has no official benchmark figures; the "37% Token savings" circulating online comes from internal testing of Programmatic Tool Calling, which Anthropic launched in the API in November 2025 (average usage on complex research tasks dropped from 43,588 to 27,297 Tokens), and cannot be directly applied to Code Mode.

Expired50%
Nov 15

Programmatic Tool Calling is a capability Anthropic launched at the API level that allows the model to write code within a single request to orchestrate multiple tool calls; it shares the "use code instead of round-by-round reasoning" idea with Code Mode, but operates at a different level (the former targets API developers, while the latter is built into Claude Code terminal sessions).

Unverified50%
Oct 21

PTC stands for Programmatic Tool Calling.

Verified65%

All Facts (3)

Source Articles