server-tools changedagents-and-tools/tool-use/server-tools
Nearest release: v2.1.318, published 4 hours 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+4added
Lines−3removed
From line
33
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits17to this page, all time
The whole hunk
from line 33, old and new numbered
/
from line 33
3333 # the turn by re-sending the request with the assistant content appended to messages.
3434 curl https://api.anthropic.com/v1/messages \
3535 -H "x-api-key: $ANTHROPIC_API_KEY" \
36 -H "anthropic-version: 2023-06-01" \
36 -H "anthropic-version: 2026-10-21" \
3737 -H "content-type: application/json" \
3838 -d '{
3939 "model": "claude-opus-5-5",
from line 392
392392
393393* **Continue the conversation:** Pass the paused response back as-is in a subsequent request to let Claude continue its turn.
394394* **Preserve tool state:** Include the same tools in the continuation request. A paused turn can end with a `server_tool_use` block whose tool has not run yet, and the API returns a validation error if that tool is missing from the continuation.
395* **Repeat as needed:** A continued turn can pause again. Check `stop_reason` on each response and continue until you get a different stop reason, capping the number of continuations as you would any retry loop.
395* **Keep the container:** If the response includes a `container`, as it does with the [code execution tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool), send its ID back in the continuation request. Without it, the request runs in a new container, and files from earlier in the turn are lost.
396* **Repeat as needed:** A continued turn can pause again. Check `stop_reason` on each response and continue until you get a different stop reason, capping the number of continuations as you would any retry loop. Keep every paused response in `messages`, in order. A continuation holds only new content, so a request that leaves out an earlier paused response loses that work and can return a 400 error.
396397
397398For the other `stop_reason` values and general handling patterns, see [Stop reasons and fallback](https://platform.claude.com/docs/en/build-with-claude/handling-stop-reasons).
398399
from line 508
507508 # and the same tools array (see the SDK tabs).
508509 curl https://api.anthropic.com/v1/messages \
509510 -H "x-api-key: $ANTHROPIC_API_KEY" \
510 -H "anthropic-version: 2023-06-01" \
511 -H "anthropic-version: 2026-10-21" \
511512 -H "content-type: application/json" \
512513 -d '{
513514 "model": "claude-opus-5-5",
No line in this hunk matches that.