Anthropic Stream Event Viewer
Anthropic Stream Event Viewer
Parse Anthropic message_stream typed events — message_start, content_block_*, thinking, tool_use, message_delta, message_stop — into a structured conversation viewer.
Message
Usage
Reconstructed content blocks (3)
{"model":"sonnet"}{
"model": "sonnet"
}Event counts
Event timeline
| # | type | summary |
|---|---|---|
| 0 | message_start | model=claude-opus-4.7 |
| 1 | content_block_start | idx=0 type=thinking |
| 2 | content_block_delta | idx=0 delta=thinking_delta |
| 3 | content_block_delta | idx=0 delta=thinking_delta |
| 4 | content_block_stop | |
| 5 | content_block_start | idx=1 type=text |
| 6 | content_block_delta | idx=1 delta=text_delta |
| 7 | content_block_stop | |
| 8 | content_block_start | idx=2 type=tool_use name=get_pricing |
| 9 | content_block_delta | idx=2 delta=input_json_delta |
| 10 | content_block_delta | idx=2 delta=input_json_delta |
| 11 | content_block_stop | |
| 12 | message_delta | stop_reason=tool_use |
| 13 | message_stop |
What This Tool Does
Anthropic Stream Event Viewer is built for deterministic developer and agent workflows.
Parse Anthropic message_stream typed events — message_start, content_block_start/delta/stop, tool_use, thinking, message_delta, message_stop — into a structured viewer with stop_reason and usage breakdown.
Use How to Use for execution steps and FAQ for constraints, policies, and edge cases.
Last updated:
This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.
Agent Invocation
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/anthropic-stream-event-viewer/
For automation planning, fetch the canonical contract at /api/tool/anthropic-stream-event-viewer.json.
How to Use Anthropic Stream Event Viewer
- 1
Drop the message_stream log
Paste a raw Anthropic SSE capture — the typed event names like message_start, content_block_delta, and message_stop must remain on their own lines, with JSON payloads on data lines.
- 2
Read the message header
The Message panel surfaces the message id, model, role, and stop_reason as soon as those events arrive. A short note explains every stop_reason value (end_turn, tool_use, max_tokens, refusal, pause_turn).
- 3
Walk reconstructed content blocks
Text, thinking, and tool_use blocks are reassembled from their deltas. tool_use blocks show the accumulated partial_json and parse it once it becomes valid JSON so you can verify tool inputs end-to-end.
- 4
Audit usage and the timeline
The Usage panel separates input, output, cache_creation_input_tokens, and cache_read_input_tokens. The event timeline lets you click any event to see its full JSON payload for deeper debugging.