get_attachment
Retrieve an attachment’s bytes as base64-encoded data by supplying the attachment ID from a message lookup. Use it to access files shared in iMessage, SMS, or RCS conversations.
Instructions
Retrieve an attachment's bytes, base64-encoded.
Args:
attachment_id: Attachment id from get_message.
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": {
"attachment_id": "<attachment_id>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| filename | Yes | ||
| mime_type | Yes | ||
| data_base64 | Yes |