components_v2_edit
Edits a previously sent Components V2 Discord message after previewing the payload and confirming approval, preserving the irreversible V2 format.
Instructions
Purpose: Edit a Components V2 message previously sent by this bot. The IS_COMPONENTS_V2 flag is irreversible - V2 messages stay V2.
Returns: {message_id, channel_id, edited_timestamp}. The server first returns a bounded component review with payload_hash and one-time approval_id; run with MCP_DRY_RUN=false, __confirm:true, the exact __confirm_hash, and __confirm_id before expiry to edit once.
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>",
"components": "<components>"
},
"name": "components_v2_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| __confirm | No | Authorize the exact payload supplied in this call after reviewing its summary. | |
| channel_id | Yes | Discord channel ID (snowflake) | |
| components | Yes | ||
| message_id | Yes | Discord message ID | |
| __confirm_id | No | One-time approval ID returned by the preceding preview; expires shortly. | |
| __confirm_hash | No | SHA-256 payload_hash returned by the preceding preview. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||