execute_webhook
Send a Discord webhook message with custom username/avatar, embeds, components, files, polls, or thread/forum options to automate channel posts.
Instructions
Post a message through a webhook (custom username/avatar, embeds and components allowed). [POST /webhooks/{webhook_id}/{webhook_token}]
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": {
"webhook_id": "<webhook_id>",
"webhook_token": "<webhook_token>"
},
"name": "execute_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tts | No | Text-to-speech message | |
| poll | No | Poll: {question:{text}, answers:[{poll_media:{text, emoji?}}], duration: hours, allow_multiselect} | |
| wait | No | Return the created message | |
| files | No | Files to attach (each: path, url or data_base64) | |
| flags | No | Flags bitfield | |
| embeds | No | Embeds: [{title, description, url, color, fields:[{name,value,inline}], image:{url}, thumbnail:{url}, footer:{text}, author:{name}}] (bots/webhooks only) | |
| reason | No | Reason (shown in the audit log) | |
| content | No | Message text (up to 2000 characters; Markdown supported) | |
| username | No | Username | |
| thread_id | No | Post into this thread | |
| avatar_url | No | avatar url | |
| components | No | Message components (bots/webhooks only) | |
| webhook_id | Yes | Webhook ID | |
| attachments | No | attachments | |
| thread_name | No | Create a forum post with this title | |
| applied_tags | No | Forum tag IDs to apply | |
| webhook_token | Yes | Webhook token | |
| allowed_mentions | No | Control pings: {parse: ["users","roles","everyone"], users: [...], roles: [...], replied_user: bool} |