doc_history
Retrieve a document's git revision history, newest first and following renames, to inspect changes, get commit SHAs for diff or revert, and see created and last-modified commits.
Instructions
A document's git history, newest first, following renames: each revision's sha feeds doc_at, doc_diff and doc_revert; also its created and last_modified commits. Use activity for the whole mind, doc_blame for who wrote a given line, search_history for when a text appeared.
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_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Keep revisions whose commit subject contains this. | |
| path | Yes | Path of the doc as named now, e.g. projets/cdc.md: its past names are followed. | |
| limit | No | Most revisions to return, newest first. | |
| since | No | Date filter, e.g. '2 weeks ago' or '2026-06-01' (not a revision). | |
| until | No | Upper date bound, same format. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| created | No | ||
| revisions | Yes | ||
| last_modified | No |