components_v2_send
Send rich Discord messages using Components V2 layouts (Container, Section, MediaGallery, ActionRow). Validates layout before sending and returns message ID, channel ID, jump URL.
Instructions
Purpose: Send a Components V2 message - rich layout (Container, Section, MediaGallery, ActionRow, ...). MUTUALLY EXCLUSIVE with content/embed/poll/sticker. Flag IS_COMPONENTS_V2 is irreversible per-message.
When to use: announcements, release notes, dashboards, polls - anything beyond plain text.
When NOT to use: simple text reply → use messages_send.
Validation: components are validated via validateComponentsV2 before sending; the call rejects with VALIDATION_FAILED if the layout is illegal (no API call made).
Returns: {message_id, channel_id, jump_url, component_count}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | Target channel | |
| components | Yes | Components V2 array (1-40 items, recursive) | |
| allowed_mentions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||