document_read_text
Extract text content from LibreOffice documents as Markdown for AI processing. Supports pagination and character limits to handle large files efficiently.
Instructions
Read document content as Markdown text. For large documents, use limit/offset for pagination. Default returns up to 4000 characters. Use document_get_outline first to understand structure.
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": {
"docId": "<docId>"
},
"name": "document_read_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | Document handle returned by document_open | |
| limit | No | Maximum number of items to return. Default: 50 | |
| offset | No | Pagination offset. Default: 0 | |
| maxChars | No | Maximum characters to return. Default: 4000 |