Interface: AnthropicCodeExecutionTool
@providerprotocol/ai / anthropic / AnthropicCodeExecutionTool
Interface: AnthropicCodeExecutionTool
Section titled “Interface: AnthropicCodeExecutionTool”Defined in: src/providers/anthropic/types.ts:984
Code execution tool for sandboxed Python/Bash execution.
Enables Claude to write and execute code in a secure container with pre-installed data science libraries.
Requires beta header: code-execution-2025-08-25
Example
Section titled “Example”const tool: AnthropicCodeExecutionTool = { type: 'code_execution_20250825', name: 'code_execution',};Properties
Section titled “Properties”name:
"code_execution"
Defined in: src/providers/anthropic/types.ts:988
Tool name - must be ‘code_execution’
type:
"code_execution_20250825"
Defined in: src/providers/anthropic/types.ts:986
Tool type identifier