list_document_versions
List every write of a document, newest first, saying which the person made.
read-onlyidempotentMCP toolAgent
Calling it#
curl -X POST http://127.0.0.1:8787/komrad.agent.v1.AgentService/ListDocumentVersions \
-H 'Content-Type: application/json' \
-d '{
"id": "<id>"
}'komrad rpc list-document-versions \
--id '<uuid>'{
"name": "list_document_versions",
"arguments": {
"id": "<id>"
}
}Offered by the komrad MCP server to writer, reviewer, orchestrator agents.
Request#
ListDocumentVersionsRequest#
| Field | Type | Description |
|---|---|---|
id | uuid* | The document whose versions to list, by id. |
Response#
ListDocumentVersionsResponse#
| Field | Type | Description |
|---|---|---|
versions | DocumentVersion[] | Every version of the document, newest first. |
Types#
DocumentVersion#
DocumentVersion is one write of a document, without its text.
| Field | Type | Description |
|---|---|---|
version | int32 | The version's number, to pass to |
name | string | The document's title at this version. |
type | string | The name of the document's type at this version. |
by_person | bool | Whether the person wrote this version, rather than the agent that owns the document. |
created_at | timestamp | When this version was written. |