messages_edit
Edit a Discord message previously sent by this bot to correct typos, update status text, or rewrite embeds. Returns message ID, channel ID, and edited timestamp.
Instructions
Purpose: Edit a Discord message previously sent by this bot.
When to use: correct typos; update status text; rewrite embeds.
When NOT to use: edit messages NOT sent by this bot - Discord rejects (403).
Returns: {message_id, channel_id, edited_timestamp}.
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": "messages_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | New text content (max 2000 chars) | |
| channel_id | Yes | Channel containing the message | |
| message_id | Yes | Message to edit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||