attachment_extract
Extracts text from uploaded PDF, DOCX, XLSX, and UTF-8 files, returning character windows so long documents can be read in parts by continuing from an offset.
Instructions
Extract text from an uploaded file. Handles PDF (text layer), .docx and .xlsx, and any UTF-8 text format. Returns a character window so a long document can be read in pieces: pass offset to continue where the previous call stopped. An empty PDF result means it is a scan, not that extraction failed.
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": {
"path": "<path>"
},
"name": "attachment_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path, or a filename in the attachments directory. | |
| offset | No | Start character offset (default 0). | |
| maxChars | No | Window size (default 200000). |