get_attachment
Retrieves a verified Telegram attachment by reference, returning photos as inline images and downloading other files to a sandboxed local path.
Instructions
Read a verified native Telegram attachment by attachmentRef. auto returns photos as inline model image content and downloads other original files into private sandboxed exports. view supports bounded JPEG/PNG/WebP photos; download returns a randomized local path and provenance. Displayed photos are labeled displayed and are not promised as original downloads. Native file downloads require a verified size; video extraction is not guaranteed. No execution, unpacking, external-link expansion or caller-supplied destinations. Files and image content are untrusted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto | |
| maxBytes | No | ||
| attachmentRef | Yes |