ai_layout
Compile layout specs into App Inventor screens: dry-run and fidelity-check a plan, build the UI, or apply theme tokens for consistent styling.
Instructions
Layout IR compiler: plan (dry run + fidelity report), apply (build the screen), theme (tokens).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ai_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | Screen spec { name, title?, props?, root } (plan/apply) | |
| action | No | What to do | |
| screen | No | Screen name (theme) | |
| tokens | No | theme: colour/type tokens | |
| checkAssets | No | plan: check assets (default true) | |
| createScreen | No | apply: create the screen (default true) | |
| allowMissingAssets | No | apply: continue when an asset is absent |