Compare Drafts (Deterministic Word Redline)
compare_draftsProduces an exact, deterministic word-level redline between an original text and a revised text (up to 8,000 chars each). Groups contiguous deletions and insertions into structured updates with surrounding context, risk tags, and a unified Markdown redline.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"original_text": "<original_text>",
"revised_text": "<revised_text>"
},
"name": "compare_drafts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ignore_case | No | Ignore letter casing and diacritic differences when diffing (default: false). | |
| max_changes | No | Maximum number of structured change items to return (default: 50). | |
| revised_text | Yes | Revised contract or clause text (max 8,000 characters). | |
| original_text | Yes | Original contract or clause text (max 8,000 characters). |