get_document
Retrieve a document's full text by ID or path, or up to 50 documents' with 'files'. Returns extracted text for binary formats (PDF, DOCX, PPTX).
Instructions
Retrieve a document's full text by ID or path, or up to 50 documents' with 'files'. Returns extracted text for binary formats (PDF, DOCX, PPTX). Intended for use after search_knowledge returns a DocumentId worth reading in entirety, or when the user has named an exact file. With 'files' each document comes under its own header in the order asked; a file that can't be read gets an error line and doesn't stop the others, and past 2,000,000 characters in all, the rest get one too. Pair 'files' with list_files sort "newest" and limit to read the newest entries of a folder in two calls.
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": {
"containerId": "<containerId>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Several documents instead of one: JSON array of document IDs (UUID) or virtual paths, e.g. ["/log/2026-11-08.md","id2"]. Max 50. Use instead of fileId. | |
| fileId | No | Document ID (UUID) or virtual path (e.g., '/docs/readme.md') | |
| containerId | Yes | Container ID or name |