In short.
Fine-grained tool streaming is an Anthropic implementation guide for developers building responsive Claude tool integrations, with the catch that clients must handle incomplete or invalid JSON. It documents eager_input_streaming, the streaming event contract and returning malformed input as tool errors. The documented benefit is earlier access to large arguments such as documents or code; measured latency gains, costs and minimum SDK versions are unknown, and runtime behavior has not been assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected page at [https://platform.claude.com/docs/en/agents-and-tools/tool-use/fine-grained-tool-streaming.md], including metadata, examples, configuration defaults, beta-header restrictions, event accumulation, error recovery and availability notices. The source revision is sha256:40ff7c78dcc0fc20ead93a145ec61f8253d03302a840455535c17d73a3564c96. Linked pages are excluded, including detailed streaming, tool-reference, retention and error-handling documentation. No code or API request was executed; SDK behavior, platform compatibility, latency gains and complete tool-execution journeys remain unassessed.
The overview
Resource identity
Anthropic's Fine-grained tool streaming documentation explains a Claude Messages API feature that delivers generated tool arguments incrementally. The resource is the guide at [https://platform.claude.com/docs/en/agents-and-tools/tool-use/fine-grained-tool-streaming.md].
The page includes configuration and accumulation examples for Python, TypeScript, C#, Go, Java, PHP and Ruby, plus request examples using cURL and the Anthropic CLI.
Practical assessment
The guide is useful for understanding both the configuration change and the client responsibilities it introduces. It explains the initial empty input placeholder, how to assemble fragments and how to report malformed arguments back to Claude.
Its strongest practical fit is an application that benefits from seeing a long argument before generation finishes. That fit is an inference from the documented mechanism; the page supplies no benchmarks establishing the size of the improvement or a reduction in total task time.
Who it is for
The intended readers are developers integrating Claude with user-defined tools, especially tools receiving long documents, generated code or other large arguments. Earlier fragments could support a progressive display while generation continues.
Beginners get a concrete file-writing example and a step-by-step explanation of fragment assembly. Experienced developers get event names, block-index handling, SDK accumulator distinctions and compatibility rules for the older beta header. Readers still need familiarity with API requests, JSON and tool calls.
What the feature provides
Fine-grained streaming exposes tool-input fragments as Claude generates them, without server-side buffering or JSON validation. It uses the existing streaming events and can be enabled separately for each user-defined tool.
The page distinguishes reacting to fragments from assembling complete arguments. An application can display arriving text while an SDK helper accumulates it, or manage accumulation itself. Receiving fragments does not establish that the arguments are complete, valid or ready for tool execution.
Using it
Requirements and compatibility
An integration needs API credentials, access to a supported Claude model, a user-defined tool with an input schema, a streaming Messages API request and client code that handles streamed events. The examples target claude-opus-5-5. Minimum SDK versions are not specified.
The metadata lists stable support for Claude API, Amazon Bedrock including bedrock-runtime, Claude Platform on AWS, Anthropic-managed and Google-managed Claude on Google Cloud, and Microsoft Foundry. The page does not provide separate configuration examples for every platform.
How the stream works
A tool_use content_block_start event contains input: {}, which is a placeholder rather than the completed arguments. Initialize an empty string for that content-block index, append each input_json_delta event's partial_json string, and parse the assembled string when content_block_stop arrives.
This accumulation contract also applies to standard tool streaming. Fine-grained streaming changes the validity guarantee: even the accumulated string may be malformed. The page also warns that a max_tokens stop can truncate an argument, so applications must examine the response's stop reason.
Configuration and error handling
Set eager_input_streaming to true on each user-defined tool that needs it and enable request streaming. Omitting the field normally retains buffered streaming. The older fine-grained-tool-streaming-2025-05-14 beta header changes the default for tools whose field is unset; an explicit false retains buffering even with that header.
The beta header cannot accompany a computer-use or browser-use toolset entry: the page says that combination is rejected. Remove the header and use the per-tool field instead.
Guard JSON parsing. If input cannot be parsed, the documented recovery is to return a tool_result associated with the tool_use_id, set is_error to true, and put the raw input inside a serialized JSON object under INVALID_JSON. Build that wrapper with a JSON library so embedded quotes and special characters are escaped correctly.
Example use
The main example defines a make_file tool with filename and lines_of_text arguments, then asks Claude to produce a long poem for poem.txt. Fine-grained streaming exposes pieces of the generated argument before the long parameter is finished. The example illustrates streaming tool input; it does not include a complete file-writing implementation.
A second example uses get_weather with a city argument to demonstrate manual accumulation and guarded parsing. The PHP example explicitly requires manual accumulation, while several other SDK examples demonstrate accumulator helpers. These are documentation examples; their execution and outputs have not been assessed.
Assessment & evidence
Limitations
The central limitation is that streamed arguments may remain invalid or incomplete after accumulation. Unparseable input cannot be used to run the tool. A response stopped by max_tokens may require a retry with a higher limit or repair of the partial input.
The page does not quantify latency savings, malformed-input frequency, retry behavior or the memory needed to accumulate large arguments. Earlier access to text does not by itself establish earlier successful tool execution.
Why the tradeoff matters
The documented rationale is that removing buffering allows the client to receive fragments before a large parameter is complete. That explains the opportunity for earlier visible progress while leaving the application responsible for detecting unusable input.
A reasonable decision rule is to enable the feature where an application can use partial text meaningfully and already handles incomplete streams. If the application only uses fully parsed arguments, the practical benefit needs measurement rather than assumption.
Alternative within the same API
The directly documented alternative is standard buffered tool streaming. Without eager_input_streaming or the older beta-header override, the API buffers and validates each parameter value before streaming it. Explicitly setting eager_input_streaming to false retains that behavior for an individual tool.
Buffered streaming is a relevant comparison when the application has little use for partial arguments. The page does not compare competing providers, frameworks or streaming protocols, so their relative suitability is not assessed.
Evidence and its limits
The evidence is the complete Anthropic documentation page, including its support metadata, configuration examples, accumulation contract, malformed-JSON recovery instructions and availability notices.
It supports an explanation of the documented interface and intended behavior. It supplies no independent benchmarks or production results, and no examples or API requests were executed. Runtime correctness, reliability and performance remain unassessed.
Access & freshness
Costs
The page provides no API prices, feature surcharge policy, usage measurements or cost comparisons. The cost of adopting fine-grained streaming, including any difference from buffered streaming, is unknown from this resource.
The example max_tokens values of 65536 and 1024 are request limits, not observed token consumption or prices.
Licensing and data handling
The page does not state a licence for redistributing the documentation or its code examples. Redistribution and reuse permissions are therefore unknown from this resource.
The feature is described as eligible for zero data retention, excluding Covered Models, and eligible for HIPAA readiness. These statements describe eligibility rather than establish the terms applying to a particular account or deployment. The linked retention requirements and contractual conditions are outside this page.
Freshness and support details
The page was captured on 24 November 2026 at 22:00:07.279 UTC. It labels the feature stable, presents eager_input_streaming as the replacement for the older beta header, and uses anthropic-version: 2026-10-21 in its cURL example. No publication or last-updated date is supplied.
The availability text says the feature is available on every model, while the metadata enumerates specific supported models. The page does not explain the relationship between these statements. Exact model and SDK compatibility should be confirmed for the intended integration.
Practical next steps
For adoption, confirm support in the chosen SDK and platform, enable the per-tool flag, and implement indexed accumulation with guarded parsing and stop-reason handling. Keep partial display separate from invoking the tool with complete arguments.
A useful evaluation would compare buffered and fine-grained streaming on representative large inputs, measuring time to the first useful fragment separately from total completion time. Include malformed JSON, max_tokens truncation and multiple tool blocks, and verify that error results preserve the original invalid input. These are recommended checks, not reported results.
