edit_webhook_message
Updates an existing Discord webhook message using its webhook and message IDs, allowing changes to content, embeds, files, components, flags, or allowed mentions.
Instructions
Edit Webhook Message. [PATCH /webhooks/{webhook_id}/{webhook_token}/messages/{message_id}]
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>",
"message_id": "<message_id>"
},
"name": "edit_webhook_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tts | No | Text-to-speech 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) | |
| components | No | Message components (bots/webhooks only) | |
| message_id | Yes | Message ID | |
| webhook_id | Yes | Webhook ID | |
| attachments | No | attachments | |
| webhook_token | Yes | Webhook token | |
| allowed_mentions | No | Control pings: {parse: ["users","roles","everyone"], users: [...], roles: [...], replied_user: bool} |