Show a document's history
tp_document_versionsReturns a document's history: its earlier texts, kept as revisions each time tp_update_document replaces the text (the ten most recent, newest first), and any documents linked to it as versions through tp_save_document's replaces (oldest first). Use it when the user asks what changed in a document, what it said before, or for an earlier draft. Pass a revision id as revision to get that earlier text as Markdown.
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": {
"id": "<id>"
},
"name": "tp_document_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document id. Any document in a version chain can be used. | |
| revision | No | A revision id from this tool's list, to return that earlier text as Markdown. |