webhooks_edit_message
Edit a message previously sent by a Discord webhook to update resolved alerts, correct typos, or replace payloads. Returns message and channel IDs after the edit.
Instructions
Purpose: Edit a message previously sent by this webhook.
When to use: - Update an alert that has been resolved, fix a typo, swap V2 layouts.
Prefer instead: - components_v2_edit for V2 layouts (this is the low-level escape hatch - V2 validation is intentionally z.record).
Auth: NO Authorization: Bot … header.
Body mirrors webhooks_execute minus thread_name. thread_id is a query param, not a body field.
Returns: {message_id, channel_id} after the edit.
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>",
"token": "<token>",
"message_id": "<message_id>"
},
"name": "webhooks_edit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poll | No | ||
| flags | No | V2 layout flag = 1<<15 = 32768. Setting V2 requires components. | |
| token | Yes | Webhook secret - treat as credential, do not log | |
| embeds | No | Pass `[]` or null to clear embeds. | |
| content | No | ||
| thread_id | No | Query param: thread the message lives in | |
| components | No | Pass `[]` or null to clear components. Prefer `components_v2_edit` for V2 layouts. | |
| message_id | Yes | Message to edit | |
| webhook_id | Yes | Webhook id | |
| attachments | No | ||
| payload_json | No | ||
| allowed_mentions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||