read_attachment
Extract text from a single PDF or image page using cached transcription, native PDF text, or local OCR. Returns provenance and next page; OCR output is unverified.
Instructions
Read one PDF/image page: cached transcription, native PDF text, or local printed OCR.
For handwriting/math and mixed-image pages, use get_material_image with a vision model. Output records provenance and the next page; OCR/transcriptions are unverified.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto | |
| page | No | ||
| cursor | No | ||
| max_chars | No | ||
| attachment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| text | Yes | ||
| method | Yes | ||
| status | Yes | ||
| metadata | Yes | ||
| mime_type | Yes | ||
| local_path | Yes | ||
| page_count | Yes | ||
| size_bytes | Yes | ||
| source_url | Yes | ||
| next_cursor | Yes | ||
| source_hash | Yes | ||
| attachment_id | Yes |