define_section
Author a new kind of section for this shop, as a layout tree. Use this when the shop has nothing that does what the merchant asked for. The type is forced into the custom. namespace and cannot shadow a built-in or the theme's. If it is refused you get the exact reasons back; fix them and try again. Call get_design_guide first if you have not: it has the layout language and the rules.
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": {
"name": "<name>",
"definition": "<definition>"
},
"name": "define_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Lower case, dashes. Becomes custom.<name>. | |
| definition | Yes | label, category, description, icon, fields (the settings it takes) and render (the layout tree). See the DSL reference in your instructions. |