Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

fine-grained-tool-streaming changedagents-and-tools/tool-use/fine-grained-tool-streaming

Nearest release: v2.1.301, published 5 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+8added
Lines−10removed
From line 496 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits11to this page, all time

The whole hunk

from line 496, old and new numbered
/
lines
from line 496
496496 
497497The type mismatch between the initial `input: {}` (object) and `partial_json` (string) is by design. The empty object marks the slot in the content array. The delta strings build the real value.
498498 
499<CodeGroup>
500 ```bash cURL
501 # Accumulating per-block input deltas needs a programming language; the first
502 # example's CLI tab shows the raw fragments with jq. See the SDK tabs.
503 ```
499<CodeGroup exclude="shell">
500 <CodeGroupItem language="cURL">
501 Accumulating the input fragments of each `tool_use` block needs more logic than a single shell command. Use the [Claude SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) for this. To see the raw fragments as they stream, run the request in [How to use fine-grained tool streaming](https://platform.claude.com/docs/en/agents-and-tools/tool-use/fine-grained-tool-streaming#how-to-use-fine-grained-tool-streaming).
502 </CodeGroupItem>
504503 
505 ```bash CLI
506 # Accumulating per-block input deltas needs a programming language; the first
507 # example's CLI tab shows the raw fragments with jq. See the SDK tabs.
508 ```
504 <CodeGroupItem language="CLI">
505 Accumulating the input fragments of each `tool_use` block needs more logic than a single shell command. Use the [Claude SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) for this. To see the raw fragments as they stream, run the request in [How to use fine-grained tool streaming](https://platform.claude.com/docs/en/agents-and-tools/tool-use/fine-grained-tool-streaming#how-to-use-fine-grained-tool-streaming).
506 </CodeGroupItem>
509507 
510508 ```python Python
511509 client = anthropic.Anthropic()
Feedback