get_document_text
Read the extracted CONTENT of an uploaded document (PDF, Word .docx, Excel .xlsx, PowerPoint, text). Excel comes as one Markdown table per sheet ('## Blatt: ', header row, first column 'Zeile' = Excel row number); Word with headings, list items and tables. Use search_knowledge to find WHICH document/rows are relevant, then this tool for the exact rows. Required: document_id (from list_documents / search_knowledge source.document_id). Optional: sheet (Excel sheet name, exact or partial), query (only rows/lines containing ALL words, case-insensitive; "quoted phrase" stays together; table rows come with their header), max_chars (default 20000, max 100000), offset (continue where next_offset points). Returns { document_id, title, sheets?, text, total_chars, truncated, next_offset?, matches?, source }. Read-only.
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": "get_document_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Only rows/lines containing all these words (e.g. 'Beispiel' or '"Beispiel GmbH" EDI'). | |
| sheet | No | Excel: only this sheet (name, exact or partial). | |
| offset | No | Start position in the (filtered) text — from next_offset. | |
| max_chars | No | Characters to return (default 20000, max 100000). | |
| document_id | Yes | ID of the document |