doc_revert
Restore a document to a past revision as a new commit attributed to you; intermediate history stays, so the change can be reverted again.
Instructions
Restore a document to a past revision, as a new commit attributed to you: the history in between stays, so it can be reverted again. Check first with doc_history, doc_diff or doc_at. Refuses on remote mirrors (remotes/) and on a deleted doc: undo_run brings that back. To undo everything an agent did, use undo_run.
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>",
"rev": "<rev>",
"ai": "<ai>"
},
"name": "doc_revert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ai | Yes | Your AI family in lowercase (claude, chatgpt, gemini), not the model name. Attributes the change. | |
| rev | Yes | The revision to restore. Prefer a sha from doc_history: HEAD~N counts the whole mind's commits, not this doc's. | |
| path | Yes | Path of the doc, e.g. notes/cdc.md. |