edit_message
Update an existing Discord message's text, flags, or attachments and add new files—ideal for correcting content or refreshing attachments without sending a new message.
Instructions
Edit one of your messages (content, flags, attachments to keep). Pass files to add new attachments. [PATCH /channels/{channel_id}/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": {
"channel_id": "<channel_id>",
"message_id": "<message_id>",
"attachments": "<attachments>"
},
"name": "edit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Files to attach (each: path, url or data_base64) | |
| flags | No | ||
| embeds | No | ||
| content | No | ||
| channel_id | Yes | Channel ID (text, voice, thread, forum or DM channel) | |
| components | No | ||
| message_id | Yes | Message ID | |
| attachments | Yes | ||
| allowed_mentions | No |