Read document text
read_documentFetch a document by ID or attachment path and return its full text, converting PDFs and plain-text files so you can read or search archived association documents.
Instructions
Fetch a document and return its text (PDF and plain-text files).
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": "<document>"
},
"name": "read_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | A document id, or an attachment `path` from another tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| note | No | ||
| text | Yes | ||
| filename | Yes | ||
| truncated | No | ||
| size_bytes | Yes | ||
| content_type | Yes |