overview changedagents-and-tools/tool-use/overview
Nearest release: v2.1.304, published 6 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+2added
Lines−6removed
From line
237
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 237, old and new numbered
/
from line 237
237237 tool_choice: { type: "auto", disable_parallel_tool_use: true },
238238 messages
239239 });
240 const toolUse = response.content.find(
241 (block): block is Anthropic.ToolUseBlock => block.type === "tool_use"
242 )!;
240 const toolUse = response.content.find((block) => block.type === "tool_use")!;
243241 console.log(`Claude called ${toolUse.name} with ${JSON.stringify(toolUse.input)}`);
244242
245243 // Run the tool, then send the result back in a tool_result block.
from line 258
260258 });
261259
262260 // Claude uses the result to answer the original question.
263 const finalText = followup.content.find(
264 (block): block is Anthropic.TextBlock => block.type === "text"
265 )!;
261 const finalText = followup.content.find((block) => block.type === "text")!;
266262 console.log(finalText.text);
267263 ```
268264
No line in this hunk matches that.