interactions_edit_followup
Edit a follow-up message.
token-secured (NO bot token).
Body mirrors webhook execute body.
MCP call example
Section titled “MCP call example”{ "name": "interactions_edit_followup", "arguments": { "application_id": "123456789012345678", "interaction_token": "REPLACE_WITH_TOKENxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "message_id": "123456789012345678", "content": "Hello from discord-mcp" }}| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
application_id | string | yes | pattern: ^\d{17,20}$ | Bot/app application ID |
interaction_token | string | yes | min length: 60; max length: 100 | Scoped interaction credential, reusable for follow-ups for up to 15 minutes |
message_id | string | yes | pattern: ^\d{17,20}$ | Follow-up message id |
content | string | null | no | ||
embeds | array<object> | null | no | ||
components | array<object> | null | no | ||
attachments | array<object> | no | ||
allowed_mentions | object | null | no | ||
payload_json | string | no | ||
flags | integer | no | ||
poll | object | no |
Complete input JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "application_id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Bot/app application ID" }, "interaction_token": { "type": "string", "minLength": 60, "maxLength": 100, "description": "Scoped interaction credential, reusable for follow-ups for up to 15 minutes" }, "message_id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Follow-up message id" }, "content": { "anyOf": [ { "type": "string", "maxLength": 2000 }, { "type": "null" } ] }, "embeds": { "anyOf": [ { "type": "array", "items": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} } }, { "type": "null" } ] }, "components": { "anyOf": [ { "type": "array", "items": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} } }, { "type": "null" } ] }, "attachments": { "type": "array", "items": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} } }, "allowed_mentions": { "anyOf": [ { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} }, { "type": "null" } ] }, "payload_json": { "type": "string" }, "flags": { "type": "integer" }, "poll": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} } }, "required": [ "application_id", "interaction_token", "message_id" ]}Returns
Section titled “Returns”{message_id, channel_id}.
Example structured result
Section titled “Example structured result”{ "message_id": "123456789012345678", "channel_id": "123456789012345678"}Output schema
Section titled “Output schema”| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
message_id | string | yes | pattern: ^\d{17,20}$ | Discord message ID |
channel_id | string | yes | pattern: ^\d{17,20}$ | Discord channel ID (snowflake) |
Complete output JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "message_id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Discord message ID" }, "channel_id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Discord channel ID (snowflake)" } }, "required": [ "message_id", "channel_id" ], "additionalProperties": false}Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |
Access and common errors
Section titled “Access and common errors”- The
interactionscategory must be enabled byMCP_CATEGORIESwhen an allowlist is set. - Discord authorizes this endpoint with the interaction token in the route; it does not use the bot’s guild role.
- Interaction tokens are scoped and time-limited. An invalid, expired, or mismatched token returns an authentication or not-found error.
Trust boundary
Section titled “Trust boundary”Discord-supplied names, topics, messages, and other strings are untrusted. Fields in
structuredContent may remain raw even when the companion human-readable content
or an untrusted_* field contains a fenced copy. Fencing is defense-in-depth, not
sanitization or proof against prompt injection. Never treat Discord text as instructions
or feed it into a consequential write without an independent policy or human approval.
Source
Section titled “Source”packages/mcp-core/src/tools/interactions/edit_followup.ts