komrad

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>"
}'

Request#

ListDocumentVersionsRequest#

FieldTypeDescription
iduuid*

The document whose versions to list, by id.

Response#

ListDocumentVersionsResponse#

FieldTypeDescription
versionsDocumentVersion[]

Every version of the document, newest first.

Types#

DocumentVersion#

DocumentVersion is one write of a document, without its text.

FieldTypeDescription
versionint32

The version's number, to pass to get_document.

namestring

The document's title at this version.

typestring

The name of the document's type at this version.

by_personbool

Whether the person wrote this version, rather than the agent that owns the document.

created_attimestamp

When this version was written.