komrad

get_document

Read one document in full, or an earlier version of it.

read-onlyidempotentMCP toolAgent

Calling it#

curl -X POST http://127.0.0.1:8787/komrad.agent.v1.AgentService/GetDocument \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "<id>"
}'

Request#

GetDocumentRequest#

FieldTypeDescription
iduuid*

The document to read, by id.

versionint32

more than 0

The version to read. Unset reads the newest.

Response#

GetDocumentResponse#

FieldTypeDescription
documentDocument

The document, with its text.

Types#

Document#

Document is markdown an agent writes for the person to read.

FieldTypeDescription
iduuid*

The document's id.

agent_iduuid*

The id of the agent that owns the document.

namestring

The document's title. No two of one agent's documents share one.

typestring

The name of the document's type.

bodystring

The document's text, in markdown. Empty in a listing.

created_attimestamp

When the document was created.

updated_attimestamp

When the document was last written.

versionint32

How many times the document has been written.

task_iduuid

The id of the task the agent was on when the document was created. Unset for an orchestrator's documents.