https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool
Code execution tool - Claude API Docs
Run Python and bash code in a sandboxed container to analyze data, generate files, and iterate on solutions.
code execution toolclaude apidocs