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

Process results programmatically changedagents-and-tools/tool-use/programmatic-tool-calling

Nearest release: v2.1.324, published 2 hours after 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+2added
Lines−3removed
From line 462 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits28to this page, all time

The whole hunk

from line 462, old and new numbered
/
lines
from line 462
462462* **Expiration:** Containers expire 30 days after creation. After about 5 minutes of inactivity a container is checkpointed, and sending a request with its ID inside the 30-day window restores it. The `expires_at` timestamp is a shorter rolling value and doesn’t report the 30-day limit.
463463 
464464<Warning>
465 While Claude’s code is waiting for a programmatic tool result, the pending call times out after about 4 minutes and raises a `TimeoutError` inside the code. Return each tool result well before the `expires_at` timestamp on the paused response. See [Container expiration during tool call](https://platform.claude.com/docs/en/agents-and-tools/tool-use/programmatic-tool-calling#container-expiration-during-tool-call).
465 While Claude’s code is waiting for a programmatic tool result, the pending call times out after about 4 minutes and raises a `TimeoutError` inside the code. That time starts when Claude’s code makes the call, before the paused response reaches you. The `expires_at` timestamp on the paused response falls after the call times out, so it isn’t your deadline. See [Container expiration during tool call](https://platform.claude.com/docs/en/agents-and-tools/tool-use/programmatic-tool-calling#container-expiration-during-tool-call).
466466</Warning>
467467 
468468## Example workflow
from line 1321
13211321 
13221322To prevent timeouts:
13231323 
1324* Monitor the `expires_at` field on paused responses.
13251324* Implement timeouts for your tool execution.
13261325* Consider breaking long operations into smaller chunks.
13271326 
from line 1481
14821481 
14831482**Container expiration**
14841483 
1485* Respond to each programmatic tool call well before the paused response’s `expires_at` timestamp. Claude’s code stops waiting for a result after about 4 minutes.
1484* Respond to each programmatic tool call as soon as you can. Don’t treat the paused response’s `expires_at` timestamp as your deadline: it falls after the call times out. Claude’s code stops waiting for a result after about 4 minutes.
14861485* Consider implementing faster tool execution.
14871486 
14881487**Tool result not parsed correctly**
Feedback