messenger_send_media_template
Sends an image or video template, with up to one button, to a Messenger recipient by PSID for media-rich business messages.
Instructions
Send a media template (image or video with up to 1 button).
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": {
"psid": "<psid>",
"media_type": "<media_type>"
},
"name": "messenger_send_media_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| psid | Yes | Page-Scoped User ID (PSID) of the recipient | |
| buttons | No | ||
| page_id | No | Facebook Page ID (falls back to MESSENGER_PAGE_ID env) | |
| media_type | Yes | ||
| access_token | No | Page Access Token (falls back to MESSENGER_PAGE_ACCESS_TOKEN env) | |
| attachment_id | No |