doc_diff
Compare document revisions to see what changed, returning a unified diff with added and removed counts, rename tracking, and truncation for large diffs.
Instructions
What changed in a document: rev alone shows that commit's change; add base to diff two revisions. A unified diff with added/removed counts; follows renames, truncates large diffs. Use doc_at for the whole text at a revision.
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": {
"path": "<path>"
},
"name": "doc_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev | No | The newer revision; HEAD (the default) is the current one. Prefer a sha from doc_history: HEAD~N counts the whole mind's commits, not this doc's. | HEAD |
| base | No | The older revision; omit it for the doc's version just before `rev`. | |
| path | Yes | Path of the doc, e.g. notes/cdc.md. |