messenger_upload_attachment
Uploads an image, audio, video, or file to Messenger’s attachment store for reuse, avoiding fetching the URL on every send.
Instructions
Upload an asset to Messenger's attachment store so it can be reused (avoids fetching the URL every send).
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": {
"type": "<type>",
"url": "<url>"
},
"name": "messenger_upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| type | Yes | ||
| page_id | No | Facebook Page ID (falls back to MESSENGER_PAGE_ID env) | |
| access_token | No | Page Access Token (falls back to MESSENGER_PAGE_ACCESS_TOKEN env) |