Read a document's history
geml_historyList every revision of a document or read one past revision's full text without restoring it; use entries' offsets to select a revision for revert.
Instructions
Read a document's recorded history. WITHOUT rev: list every revision, newest first — each entry's offset is the selector geml_revert takes as rev (-1 is the revision before the current one), and an empty list means the document has no sidecar yet and nothing can be reverted. WITH rev: the full text of that one revision, for reading what the document looked like then without restoring it.
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": "<file>"
},
"name": "geml_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev | No | Revision selector — `0` for the current tip, `-N` for N revisions back, or a revision id from the list. Omit it to get the list instead of one revision's text. | |
| file | Yes | Document path relative to the server's --root directory, e.g. notes/spec.geml |