list_document_versions
List every version of a document when the user asks what changed, or you need an older version before calling fetch. Pass documentId. Returns each version's id, version number, status, and when it was created, newest first. Pass a returned documentVersionId to fetch with the documentId to read that version and its comments. Omit it and fetch reads the latest draft.
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_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Filter by version status: DRAFT, REVIEW, PUBLISHED, SNAPSHOT, OUTDATED, or ARCHIVED. Omit to return every version. These are statuses, not the snapshot, review, and publish action verbs accepted by update_document_status. | |
| documentId | Yes | The ID of the document whose versions to list |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| versions | Yes |