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>"
}'komrad rpc get-document \
--id '<uuid>'{
"name": "get_document",
"arguments": {
"id": "<id>"
}
}Offered by the komrad MCP server to writer, reviewer, orchestrator agents.
Request#
GetDocumentRequest#
Response#
GetDocumentResponse#
Types#
Document#
Document is markdown an agent writes for the person to read.
| Field | Type | Description |
|---|---|---|
id | uuid* | The document's id. |
agent_id | uuid* | The id of the agent that owns the document. |
name | string | The document's title. No two of one agent's documents share one. |
type | string | The name of the document's type. |
body | string | The document's text, in markdown. Empty in a listing. |
created_at | timestamp | When the document was created. |
updated_at | timestamp | When the document was last written. |
version | int32 | How many times the document has been written. |
task_id | uuid | The id of the task the agent was on when the document was created. Unset for an orchestrator's documents. |