compare_documents
Compare two PDFs to identify additions, removals, and modifications in a structured diff. Use for contract versions, policy updates, or paper revisions.
Instructions
Compare two PDF documents and return a structured diff. Identifies additions, removals, modifications, and overall similarity. Costs 500 sats via Lightning. Use for: contract versions, policy updates, paper revisions.
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": {
"url_a": "<url_a>",
"url_b": "<url_b>"
},
"name": "compare_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url_a | Yes | URL of the first PDF (original) | |
| url_b | Yes | URL of the second PDF (revised) | |
| max_pages | No | Max pages per document (default 20) |