Skip to main content

Edit Discord Message

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

DESTRUCTIVEdiscord.edit_message
  • Contract tier: agent_ready
  • Risk: destructive
  • Catalog version: discord-2026.07.12.3
  • Descriptor hash: 75cf1bfa2b1623120fe541a5747ec27866f8fc637e53cf99a4c30b210203f78e

Use this when you need to replace an existing message's content. This overwrites a message after admin and confirmation checks through Discord's API and returns message/channel IDs, updated content, jump URL, or a dry-run plan. It requires a configured Discord bot and guild with the relevant permissions.

Request Body

{
"jsonrpc": "2.0",
"id": "discord-edit-message-example",
"method": "tools/call",
"params": {
"name": "discord.edit_message",
"arguments": {
"confirm": "confirm_example",
"dry_run": "",
"channel_id": "channel_id_123",
"message_id": "message_id_123",
"new_message": "new_message_example"
}
}
}

Arguments Schema

{
"type": "object",
"title": "edit_message input",
"properties": {
"confirm": {
"type": "string",
"title": "Confirm",
"default": "",
"description": "Exact phrase CONFIRM APPLY when confirmation policy is enabled; never place credentials here."
},
"dry_run": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "string"
}
],
"title": "Dry Run",
"default": false,
"description": "When true, validate and return the plan without changing Discord state."
},
"channel_id": {
"type": "string",
"title": "Channel Id",
"default": "",
"description": "Discord channel snowflake; empty uses the primary channel only where documented."
},
"message_id": {
"type": "string",
"title": "Message Id",
"default": "",
"description": "Discord message snowflake identifying the target message."
},
"new_message": {
"type": "string",
"title": "New Message",
"default": "",
"description": "Replacement text for an existing bot-authored message."
}
},
"description": "Validated input for the Discord MCP edit_message tool."
}

Output Schema

{
"oneOf": [
{
"type": "object",
"required": [
"ok",
"data",
"meta"
],
"properties": {
"ok": {
"const": true
},
"data": {
"type": "object",
"properties": {
"dry_run": {
"type": [
"boolean",
"null"
],
"description": "Provider data field dry_run returned by edit_message."
},
"jump_url": {
"type": [
"string",
"null"
],
"description": "Provider data field jump_url returned by edit_message."
},
"channel_id": {
"type": [
"string",
"null"
],
"description": "Provider data field channel_id returned by edit_message."
},
"message_id": {
"type": [
"string",
"null"
],
"description": "Provider data field message_id returned by edit_message."
},
"diagnostics": {
"type": [
"object",
"null"
],
"description": "Provider data field diagnostics returned by edit_message.",
"additionalProperties": true
}
},
"description": "message/channel IDs, updated content, jump URL, or a dry-run plan",
"additionalProperties": true
},
"meta": {
"type": "object",
"required": [
"duration_ms",
"rate_limit",
"warnings"
],
"properties": {
"guild_id": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"thread_id": {
"type": "string"
},
"channel_id": {
"type": "string"
},
"rate_limit": {
"type": "object",
"additionalProperties": true
},
"request_id": {
"type": "string"
},
"duration_ms": {
"type": "integer",
"minimum": 0
}
},
"description": "Safe execution metadata containing no credentials or raw headers.",
"additionalProperties": true
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"error",
"meta"
],
"properties": {
"ok": {
"const": false
},
"meta": {
"type": "object",
"required": [
"duration_ms",
"rate_limit",
"warnings"
],
"properties": {
"guild_id": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"thread_id": {
"type": "string"
},
"channel_id": {
"type": "string"
},
"rate_limit": {
"type": "object",
"additionalProperties": true
},
"request_id": {
"type": "string"
},
"duration_ms": {
"type": "integer",
"minimum": 0
}
},
"description": "Safe execution metadata containing no credentials or raw headers.",
"additionalProperties": true
},
"error": {
"type": "object",
"required": [
"type",
"message"
],
"properties": {
"type": {
"type": "string"
},
"message": {
"type": "string"
},
"diagnostics": {
"type": "object",
"additionalProperties": true
},
"required_perms": {
"type": "array",
"items": {
"type": "string"
}
},
"discord_error_code": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"title": "Discord MCP provider result",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Normalized success or semantic-error response; ok=false is a failed call."
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "discord-edit-message-example",
"method": "tools/call",
"params": {
"name": "discord.edit_message",
"arguments": {
"confirm": "confirm_example",
"dry_run": "",
"channel_id": "channel_id_123",
"message_id": "message_id_123",
"new_message": "new_message_example"
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool discord.edit_message executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}