Read Attachment Text
read_attachment_textRead the contents of one attachment (e.g. an LOI or lease) to answer questions about it. Pass a "query" to get only the relevant passages (recommended) instead of the whole document. Extracts text for PDFs (text layer OR scanned/image PDFs via OCR), docx, and txt/csv/html. A scanned PDF may return "status":"processing" on the first read while OCR runs — just read it again in a few seconds. For types it cannot extract (images, spreadsheets, legacy .doc), it returns "extractable":false with a "share_with_user" instruction: do NOT try to fetch the "url" yourself — give that link to the user so they can open the document. The "url" is a short-lived download link, meant for the user, not for you to fetch.
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": {
"attachment_id": "<attachment_id>"
},
"name": "read_attachment_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Optional. If given, returns only passages matching this term (cheaper and more precise than the whole document, e.g. "exclusive", "co-tenancy", "rent commencement"). | |
| attachment_id | Yes | The attachmentid (a GUID string) from list_attachments |