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.
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": {
"attachmentRef": "<attachmentRef>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto | |
| maxBytes | No | ||
| attachmentRef | Yes |