discord-mcp

Edit message

discord_edit_message

Write

Toolset
Messages messages
Discord permissions
View Channel and Read Message History
Context cost
257 tokens, estimated1,026 bytes of definition, divided by 4

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. Use discord_edit_embed for embed messages. Works in text channels and threads. Requires the View Channel and Read Message History permissions. Returns the edited message ID.

Risk and annotations

Read-onlyreadOnlyHintnoCan modify your server.
DestructivedestructiveHintnoDeclared non-destructive.
IdempotentidempotentHintyesRepeating the call with the same arguments has no additional effect.
Open worldopenWorldHintyesInteracts with an external system: Discord.

Annotations are hints the server declares. Clients use them to decide when to ask you before a call.

Parameters

ParameterTypeRulesDescription
channel_idrequiredstring
pattern ^\d{17,20}$
ID (snowflake) of the channel or thread containing the message.
message_idrequiredstring
pattern ^\d{17,20}$
ID of the message to edit. Must be a message authored by this bot.
contentrequiredstring
none
New plain-text content that fully replaces the existing content (max 2000 characters).

Output

This tool declares no output schema. Its description says what it returns; this page shows no example rather than invent one.

Related tools

Named in its description

Also in Messages

Raw definition (1,026 bytes)
{
  "name": "discord_edit_message",
  "description": "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. Use discord_edit_embed for embed messages. Works in text channels and threads. Requires the View Channel and Read Message History permissions. Returns the edited message ID.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "channel_id": {
        "type": "string",
        "pattern": "^\\d{17,20}$",
        "description": "ID (snowflake) of the channel or thread containing the message."
      },
      "message_id": {
        "type": "string",
        "pattern": "^\\d{17,20}$",
        "description": "ID of the message to edit. Must be a message authored by this bot."
      },
      "content": {
        "type": "string",
        "description": "New plain-text content that fully replaces the existing content (max 2000 characters)."
      }
    },
    "required": [
      "channel_id",
      "message_id",
      "content"
    ],
    "additionalProperties": false
  },
  "annotations": {
    "title": "Edit message",
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": true
  }
}