Skip to content

Interface: AnthropicCodeExecutionTool

@providerprotocol/ai


@providerprotocol/ai / anthropic / 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

const tool: AnthropicCodeExecutionTool = {
type: 'code_execution_20250825',
name: 'code_execution',
};

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