build_layout_for_screen
Builds and optionally applies a grandMA2 screen layout from a template or custom content, with dry-run preview and destructive-write confirmation.
Instructions
Build (and optionally apply) a layout for one of the MA2 screens.
Either ``template`` or ``content`` must be supplied (not both).
Templates (per spec §B.2): ``busking-master`` | ``preset-access`` |
``executor-monitor`` | ``macro-page`` | ``programmer-view`` |
``troubleshoot-view``.
Args:
screen: Target screen number (1-5 on a full console; 1 on onPC).
content: Optional list of ContentSpec cells (mutually exclusive with template).
template: Optional template name (mutually exclusive with content).
dry_run: When True, build the plan but don't send any commands.
confirm_destructive: Required for ``dry_run=False`` (layout writes overwrite
screen content).
Returns:
JSON envelope: ``{screen, template, plan, content, preview_ascii,
expert_review, summary, dry_run, executed_steps, blocked}``.
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": {
"screen": "<screen>"
},
"name": "build_layout_for_screen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| screen | Yes | ||
| content | No | ||
| dry_run | No | ||
| template | No | ||
| confirm_destructive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |