Edit message
edit_messageEdit previously sent bot messages by providing the channel, message ID, and new content to update the message text.
Instructions
Edit the content of a message the bot sent. The bot can only edit its own messages.
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": "<channel>",
"message_id": "<message_id>",
"content": "<content>"
},
"name": "edit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | No | Server (guild) name or id. Optional when the bot is in a single server or DISCORD_GUILD_ID is set. | |
| channel | Yes | Channel the message is in (name or id). | |
| content | Yes | New message content. | |
| message_id | Yes | Id of the message to edit. |