add_control
Adds a single control to a CAR-TER layout buffer. Accepts a control JSON object and optional tab and position for auto-placement.
Instructions
Add one control to the buffer. Auto-assigns a unique id and (if no position is given) the next free grid slot honoring the control's default span.
Args: control_json: A single control object, e.g. {"type":"gauge","label":"Battery"}. tab_index: Which tab to add to (default 0). position: Optional [row, col]; omit to auto-place.
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": {
"control_json": "<control_json>"
},
"name": "add_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | ||
| tab_index | No | ||
| control_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |