get_text_diff
Fetch block-level text diff of a completed comparison. Return exact added, removed, and modified text with word-level spans for precise quoting.
Instructions
Fetch the block-level text diff of a finished comparison. Returns summary counters plus diff blocks with their content: added and removed blocks carry the affected text, modified blocks also carry word-level spans marking exactly which words changed. By default only changed blocks are returned (only_changed=true); set only_changed=false to include equal blocks for full context. Best when you need to quote exact text changes. Works for both text and visual comparisons. Does not consume credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_blocks | No | Maximum number of blocks to return | |
| only_changed | No | Return only added/removed/modified blocks, skipping equal ones | |
| comparison_id | Yes | The comparison UUID |