Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

code-execution-tool changedagents-and-tools/tool-use/code-execution-tool

Nearest release: v2.1.330, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+20added
Lines−20removed
From line 1,076 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits32to this page, all time

The whole hunk

from line 1076, old and new numbered
/
lines
from line 1076
10761076 
10771077**Error codes by tool type:**
10781078 
1079| Tool | Error code | Description |
1080| ------------ | ------------------------- | ------------------------------------------------- |
1081| All tools | `unavailable` | The tool is temporarily unavailable |
1082| All tools | `execution_time_exceeded` | The tool call exceeded the maximum execution time |
1083| All tools | `invalid_tool_input` | Invalid parameters provided to the tool |
1084| All tools | `too_many_requests` | Rate limit exceeded for tool usage |
1085| bash | `output_file_too_large` | Command output exceeded the maximum size |
1086| text\_editor | `file_not_found` | File doesn’t exist (for view/edit operations) |
1079| Tool | Error code | Description |
1080| ----- | ----- | ----- |
1081| All tools | `unavailable` | The tool is temporarily unavailable |
1082| All tools | `execution_time_exceeded` | The tool call exceeded the maximum execution time |
1083| All tools | `invalid_tool_input` | Invalid parameters provided to the tool |
1084| All tools | `too_many_requests` | Rate limit exceeded for tool usage |
1085| bash | `output_file_too_large` | Command output exceeded the maximum size |
1086| text\_editor | `file_not_found` | File doesn’t exist (for view/edit operations) |
10871087 
10881088An expired container can’t be reused: requests that reference it return an error instead of restoring it. Send the request again without the `container` parameter to get a new container.
10891089 
from line 1500
15001500 
15011501### What’s changed
15021502 
1503| Component | Legacy | Current |
1504| -------------- | --------------------------- | ------------------------------------------------------------------- |
1505| Beta header | `code-execution-2025-05-22` | None required |
1506| Tool type | `code_execution_20250522` | `code_execution_20250825` or later |
1507| Capabilities | Python only | Bash commands, file operations |
1508| Response types | `code_execution_result` | `bash_code_execution_result`, `text_editor_code_execution_*_result` |
1503| Component | Legacy | Current |
1504| ----- | ----- | ----- |
1505| Beta header | `code-execution-2025-05-22` | None required |
1506| Tool type | `code_execution_20250522` | `code_execution_20250825` or later |
1507| Capabilities | Python only | Bash commands, file operations |
1508| Response types | `code_execution_result` | `bash_code_execution_result`, `text_editor_code_execution_*_result` |
15091509 
15101510### Backward compatibility
15111511 
from line 1560
15601560 
15611561* Availability: Available
15621562 
1563| Status | Cloud platforms |
1564| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1563| Status | Cloud platforms |
1564| ----- | ----- |
15651565| Available | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed), [Microsoft Foundry (hosted on Anthropic)](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
15661566 
15671567### Data handling
from line 1568
15681568 
15691569[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
15701570 
1571| Item | Zero data retention | HIPAA |
1572| ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
1573| Status | Not eligible | Not eligible |
1574| Details | Container data retained up to 30 days. [Learn more](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool#data-retention) | — |
1571| Item | Zero data retention | HIPAA |
1572| ----- | ----- | ----- |
1573| Status | Not eligible | Not eligible |
1574| Details | Container data retained up to 30 days. [Learn more](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool#data-retention) | — |
15751575 
15761576Applicable endpoints:
15771577 
Feedback