Upload template media
gambot_upload_template_mediaUploads a public media URL to Meta, returning a reusable header handle for WhatsApp template headers.
Instructions
Upload a public media URL (image/video/document) to Meta and get a reusable header_handle for a template's media HEADER. Use the returned headerHandle inside a HEADER component: {type:'HEADER',format:'IMAGE',example:{header_handle:[headerHandle]}}.
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": {
"url": "<url>"
},
"name": "gambot_upload_template_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public URL of the media to upload. | |
| type | No | Optional MIME type, e.g. image/png, video/mp4, application/pdf. |