Anthropic::CodeExecutionTool20260521
Inherits JSON::Serializable < Anthropic::ServerTool < JSON::Serializable < Struct < Value < Object
Code execution tool (May 2026 variant).
Code execution tool with REPL state persistence. Functionally identical to
CodeExecutionTool20260120 but uses the newer code_execution_20260521
type string. The allowed_callers union now also accepts
"code_execution_20260521".
Constructors
new(pull : JSON::PullParser)
Code execution tool (May 2026 variant).
Code execution tool with REPL state persistence. Functionally identical to
CodeExecutionTool20260120 but uses the newer code_execution_20260521
type string. The allowed_callers union now also accepts
"code_execution_20260521".
new(allowed_callers : Array(String) | Nil = nil, cache_control : CacheControl | Nil = nil, defer_loading : Bool | Nil = nil, strict : Bool | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
allowed_callers
Sourcecache_control
Sourcedefer_loading
Sourcename
Sourcestrict
Sourcetype
Source