components_v2_build_section
Build a Discord Components V2 Section with one to three markdown text lines and a required thumbnail or button accessory, returning the Section JSON node.
Instructions
Purpose: Build a Components V2 Section (type 9) - 1-3 TextDisplay lines plus a REQUIRED Thumbnail or Button accessory (Discord rejects a Section without one).
When to use: card-like content with header + supporting text + image.
Returns: {component} - Section JSON node.
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": {
"text": "<text>",
"accessory": "<accessory>"
},
"name": "components_v2_build_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 1-3 markdown text lines | |
| accessory | Yes | Required Thumbnail (type 11) or Button (type 2) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||