webhooks_execute
Send a Discord message by executing a webhook with its ID and token, enabling webhook-only integrations without a bot user.
Instructions
Purpose: Execute (send a message through) a webhook. Low-level escape hatch.
When to use:
You need a webhook-only feature (no bot user) and already hold the token.
Prefer instead:
messages_sendfor normal bot output.components_v2_sendfor V2 component layouts (this tool is the raw escape hatch - V2 validation is intentionallyz.record).
Auth: NO Authorization: Bot … header. Discord rejects bot auth on the execute route.
At least one of content, embeds, components, attachments, or poll is required.
Query params wait and with_components are passed in the URL, NOT the body.
Returns: When wait:true, {message_id, channel_id, webhook_id}. Otherwise {enqueued:true}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tts | No | ||
| poll | No | ||
| wait | No | Query param: wait for the message to be created and return it | |
| flags | No | Message flags bitfield. V2 layout = 1<<15 = 32768 (IS_COMPONENTS_V2). | |
| token | Yes | Webhook secret - treat as credential, do not log | |
| embeds | No | Legacy embeds (V1 layout). For V2 layouts use `components_v2_send`. | |
| content | No | Message text (max 2000 chars) | |
| username | No | Override the webhook display name for this message | |
| thread_id | No | Post into this thread (forum/text-thread channels) | |
| avatar_url | No | Override the webhook avatar URL for this message | |
| components | No | V1 action rows OR raw V2 component tree. Prefer `components_v2_send` for V2 layouts; this is the low-level escape hatch. | |
| webhook_id | Yes | Webhook id | |
| attachments | No | ||
| thread_name | No | When the parent is a forum, name the new thread | |
| applied_tags | No | Forum tag ids to apply when creating a thread | |
| payload_json | No | ||
| with_components | No | Query param: include components in the response message | |
| allowed_mentions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||