server-tools changedagents-and-tools/tool-use/server-tools
Nearest release: v2.1.328, published 7 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+3added
Lines−4removed
From line
23
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits19to this page, all time
The whole hunk
from line 23, old and new numbered
/
from line 23
2323
2424## The server-side loop and pause\_turn
2525
26When using server tools such as web search, the API executes tool calls in a server-side agentic loop. On a long-running turn, the API might pause that loop and return a `pause_turn` stop reason.
26When you use server tools such as web search, the API executes tool calls in a server-side agentic loop. On a long-running turn, the API might pause that loop and return a `pause_turn` stop reason.
2727
2828Here’s how to handle the `pause_turn` stop reason:
2929
from line 262
262262
263263 Message response = client.messages().create(params);
264264
265 if (response.stopReason().isPresent()
266 && response.stopReason().get().equals(StopReason.PAUSE_TURN)) {
265 if (response.stopReason().map(StopReason.PAUSE_TURN::equals).orElse(false)) {
267266 MessageCreateParams continuationParams = MessageCreateParams.builder()
268267 .model(Model.CLAUDE_OPUS_5_5)
269268 .maxTokens(4096L)
from line 1030
10311030
10321031This restricts the tool to direct calls only, bypassing the internal code execution step.
10331032
1034`allowed_callers` controls how a tool can be called: directly by Claude (`"direct"`), from inside a code execution container (for example, `"code_execution_20260120"`), or both. The `_20260209` versions of the web tools default to the code execution caller only; earlier versions default to `["direct"]`. On models that don’t support programmatic tool calling, these versions require `allowed_callers: ["direct"]`; without it the API returns a validation error that says to set it.
1033`allowed_callers` controls how a tool can be called: directly by Claude (`"direct"`), from inside a code execution container (for example, `"code_execution_20260120"`), or both. The `_20260209` versions of the web tools default to the code execution caller only; earlier versions default to `["direct"]`. On [models that don’t support programmatic tool calling](https://platform.claude.com/docs/en/agents-and-tools/tool-use/programmatic-tool-calling#feature-availability), these versions require `allowed_callers: ["direct"]`; without it the API returns a validation error that says to set it.
10351034
10361035<Note>
10371036 Even when web fetch is used in a ZDR-eligible configuration, website publishers might retain any parameters passed to the URL if Claude fetches content from their site.
No line in this hunk matches that.