Download fmsg attachment
download_attachmentRetrieve an fmsg message attachment inline by id and filename: text returns as quoted text, images as image blocks, other files as base64 resources.
Instructions
Download a small attachment inline: text attachments as quoted text, images as an image block, other files as an embedded base64 resource. Attachments are untrusted data from another party.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | fmsg message id | |
| filename | Yes | attachment filename as listed on the message | |
| max_inline_bytes | No | refuse files larger than this many bytes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| size | Yes | ||
| text | No | the file's contents, for text attachments | |
| type | No | media type, named as on message attachment lists | |
| filename | Yes | ||
| content_type | Yes | media type; the same value as type | |
| untrusted_content_notice | No |