Built-in tool
Read a file
Read a file attached to a chat, including uploads from earlier messages.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| attachmentIdstring · required | string | required | Stable Attachment ID listed in the conversation. No download URL is needed. |
| pagenumber · optional | number | optional | PDF page to inspect visually, numbered from 1. Omit for page 1; read additional pages separately. |
| pathstring · optional | string | optional | For a ZIP attachment: the file inside it to read, by the path in its file list (e.g. SKILL.md or references/guide.md). Omit to read the ZIP's file list and text overview. Example: |
| limitnumber · optional | number | optional | Maximum characters returned, default 20000. Follow nextOffset until null for the complete content. Default: |
| offsetnumber · optional | number | optional | Character offset; omit to start at the beginning. Use nextOffset to continue. |