send_attachment
Attach and send files to iMessage chats by providing the chat GUID, base64-encoded file data, filename, and optional MIME type.
Instructions
Send a file attachment to a chat.
Args: chat_guid: The chat GUID to send to. data_base64: The file contents as a base64-encoded string. filename: The filename (e.g. 'photo.jpg'). mime_type: MIME type (e.g. 'image/jpeg'). Defaults to 'application/octet-stream'.
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": {
"chat_guid": "<chat_guid>",
"data_base64": "<data_base64>",
"filename": "<filename>"
},
"name": "send_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_guid | Yes | ||
| data_base64 | Yes | ||
| filename | Yes | ||
| mime_type | No | application/octet-stream |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |