download_attachment
Download a message's photo, video, or voice clip by message ID; returns the file path on the bridge host. View-once media is temporary and deleted soon.
Instructions
Download a message's photo, video or voice clip; returns the path on the bridge host.
View-once media lands in a temporary folder and is deleted soon; never keep it.
Args: message_id: Message id from the channel event. to: Chat alias. Omit for the sole subscribed target.
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": {
"message_id": "<message_id>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||