kb_documents_get
Retrieve a single document with its full markdown body. Optional include array bundles related rows in one round-trip: revisions / attachments / groups / project. Use kb_documents_get_meta when the body is not needed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>"
},
"name": "kb_documents_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | Bundle related rows in the response. Any subset of: revisions, attachments, groups, project. `revisions` returns the 25 most recent — page the rest with kb_revisions_list; `attachments` returns active rows only, as kb_attachments_list does by default. | |
| document_id | Yes | Document id | |
| tenant_slug | No | Tenant slug to target. Required when your token grants several workspaces; omit when it grants one. If you omit it with several, the refusal names your default workspace; call kb_tenants_list to see every workspace the token grants. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groups | No | ||
| project | No | ||
| document | Yes | ||
| revisions | No | ||
| attachments | No |