discord_edit_message
Edits the text of a bot-authored Discord message in a channel or thread, replacing its content while keeping existing embeds. Use it to update or correct messages the bot previously sent.
Instructions
Edit the text content of a message previously sent by this bot. Discord forbids editing other users' messages, so this fails for non-bot messages. It changes the text and keeps any embeds; discord_edit_embed replaces the embeds and keeps the text. Works in text channels and threads. Requires the View Channel and Read Message History permissions. Returns the edited message ID. Use discord_edit_dm for a DM, or discord_edit_webhook_message for a message sent through a webhook.
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>",
"content": "<content>"
},
"name": "discord_edit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | New plain-text content that fully replaces the existing content (max 2000 characters). | |
| channel_id | Yes | ID (snowflake) of the channel or thread containing the message. | |
| message_id | Yes | ID of the message to edit. Must be a message authored by this bot. |