compare_documents
Compare PDF, DOCX, or TXT documents from local disk to see differences. Choose visual mode for a full document-review manifest or text mode for faster results; files up to 45 MB are supported.
Instructions
Compare two documents (PDF, DOCX, or TXT) and see the differences. Reads files from local disk, uploads them to Differino, and returns a text diff summary. Files up to 45 MB each are supported: large files are uploaded automatically via signed upload URLs. Use comparison_mode="visual" for the full document-review manifest with page images, red/green change regions, stable groupId values, and salience metadata; use comparison_mode="text" for faster text-only comparison. If the response has status="processing", the comparison is still running: poll get_comparison with the returned id until status="ready". Consumes the free comparison or 1 credit; the response includes creditsRemaining and freeComparisonRemaining.
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": {
"file_a_path": "<file_a_path>",
"file_b_path": "<file_b_path>"
},
"name": "compare_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_a_path | Yes | Absolute path to the original document | |
| file_b_path | Yes | Absolute path to the modified document | |
| comparison_mode | No | visual for full document review, or text for fast text-only comparison | visual |