Open an attachment
get_attachmentOpen a photo or PDF attached to a note to read invoices, receipts or scans: photos return as images, PDFs as text or page images.
Instructions
Open a photo or PDF attached to a note, such as an invoice, receipt or scan. Photos come back as images; PDFs as text, plus images of pages without a text layer. Very tall photos and pages come in overlapping parts: read them all before taking figures, and count a repeated line once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Note id from list_notes. | |
| file | Yes | Attachment file name from read_note or list_notes. | |
| part | No | For very tall photos and PDF pages: which part to show, starting at 1. For a PDF, ask for one page at a time: pages=[N]. | |
| pages | No | PDF only: page numbers to read, starting at 1. Default: the first 5. | |
| as_images | No | PDF only: also send images of pages that have text. |