list_document_revisions
Lists a document's kept revisions — title, length, date, author, writerKind — without the content (see get_document_revision). writerKind says WHO WROTE the rewrite that triggered the snapshot: human (typed by a person in the interface) or agent (the chat or an MCP client, under the identity of the person who launched it); null = a revision kept before this field existed. A revision is a snapshot taken before a rewrite (coalesced if the same author, through the same kind of writer, rewrites within 10 minutes; a change of writer, human then agent or the reverse, does create one): a document never rewritten, or rewritten only by the same author and writer within that window, may have no revision. Sorted from most recent to oldest; the list is never truncated. ⚠️ A kind: "html" document has NO history at all — the call is REFUSED by naming it, rather than returned as an empty list that would be mistaken for "never rewritten".
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": {
"documentId": "<documentId>"
},
"name": "list_document_revisions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | Document identifier, obtained via list_documents. | |
| expectedProjectId | No | UUID of the project THIS call targets (overrides the session project). |