Anthropic Capability minor

SDKs add support for code execution tool version 20260120

The Python, TypeScript, Go, Java, Ruby, PHP and C# SDKs now support code_execution_20260120, the version that adds REPL state persistence and is the minimum for programmatic tool calling.

What does this mean for me?

  • Engineering leadership

    Cost, risk, timeline, team impact Worth knowing

    Multi-step data and analysis work in agents gets simpler now that REPL state persists across cells, and it is available through the official SDKs rather than raw HTTP. No cost or migration implication.

  • Engineer

    What to change, what breaks, what to test Worth knowing

    Upgrade your SDK and set the tool `type` to `code_execution_20260120` to get variables and imports persisting across cells; no beta header needed. It is also the minimum version for programmatic tool calling, and works on Fable 5, Mythos 5, Opus 4.5+ and Sonnet 4.5+.

  • General consumer

    Using the Claude apps, not the API No impact

    Nothing to do — this is a developer SDK update.

REPL state persistence means variables and imports survive between cells in a session, which is what makes multi-step data work practical. The version is also the floor for programmatic tool calling, so SDK support is what unblocks that pattern outside raw HTTP.

Adopt it by setting the tool’s type to code_execution_20260120; no beta header is required. It is available on Claude Fable 5, Claude Mythos 5, Claude Opus 4.5 and newer, and Claude Sonnet 4.5 and newer — see the model compatibility table for the full list.

API surface

ParameterChangeBreakingModels
tools[].type: code_execution_20260120addedno

Topics: Agents and tool use

Sources

Confidence
high
Verification
Verified: stated on the vendor's own pages
Date precision
exact
How this entry was made
Drafted by an agent, reviewed by a person