components_v2_send_from_template
Populate a built-in Discord V2 template with variables and send it, using a preview-and-confirm step to authorize the exact payload.
Instructions
Purpose: Apply variables to a built-in V2 template and send the result.
Templates v1: announcement, release_notes, welcome_card, poll_results, incident_status. Each declares a variables list - pass values in vars.
Returns: {message_id, jump_url, template}. 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 send 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>",
"template": "<template>",
"vars": "<vars>"
},
"name": "components_v2_send_from_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vars | Yes | Variable substitutions for {{...}} placeholders | |
| template | Yes | Built-in template name | |
| __confirm | No | Authorize the exact payload supplied in this call after reviewing its summary. | |
| channel_id | Yes | Discord channel ID (snowflake) | |
| __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 | |||