Claude SDKs add support for code execution tool version 20260120
The Python, TypeScript, Go, Java, Ruby, PHP, and C# SDKs now support the `code_execution_20260120` tool version. This update enhances tool usage by enabling REPL state persistence and is the minimum version required for programmatic tool calling. The feature is available on specific Claude model versions and requires setting the tool's type accordingly.
- →SDKs now support code execution tool with REPL state persistence
- →Model and version compatibility for new code execution tool
Features (1) ›
- SDKs now support code execution tool with REPL state persistence
The Python, TypeScript, Go, Java, Ruby, PHP, and C# SDKs now support `code_execution_20260120`, which adds REPL state persistence and is the minimum version for programmatic tool calling. Users can adopt this by setting the tool's `type` to `code_execution_20260120`.
Notes (1) ›
- Model and version compatibility for new code execution tool
The new code execution tool version is available on Claude Fable 5, Claude Mythos 5, Claude Opus 4.5 and newer, and Claude Sonnet 4.5 and newer. No beta header is required for adoption.
https://platform.claude.com/docs/en/release-notes/overview
Related releases
- Anthropic Python SDK v0.122.0 Adds Dream Creation Output Behavior, Fixes Bugs Anthropic Python SDK Releases ·
- Claude Code Patch Fixes MCP OAuth Sign-In Issue Claude Code Releases ·
- Claude Code v2.1.229 Delivers Stability Fixes and Developer Workflow Improvements Claude Code Releases ·
- Anthropic Claude claude-sonnet-4-5-20250929 reaches end of life in 49 days endoflife.date ·
- Anthropic Claude claude-haiku-4-5-20251001 reaches end of life in 65 days endoflife.date ·
- Claude Code v2.1.228: Bug Fixes and Improvements Claude Code Releases ·