komrad

get_document_type

Read one document type and its context by name.

read-onlyidempotentMCP toolAgent

Calling it#

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

Request#

GetDocumentTypeRequest#

FieldTypeDescription
namestring*

The document type to read, by name.

versionint32

more than 0

The version to read. Unset reads the newest.

Response#

GetDocumentTypeResponse#

FieldTypeDescription
document_typeDocumentType

The document type, with its context.

Types#

DocumentType#

DocumentType is one kind of document, with the context an agent reads before writing one.

FieldTypeDescription
iduuid*

The document type's id.

namestring

The document type's name, which each document of the type carries as type.

contextstring

The markdown an agent reads before writing a document of this type.

versionint32

How many times the document type has been written.

updated_attimestamp

When the document type was last written.