render_ui
Render a fenestra/1 UI description to an accessibility tree, preview image, and warnings for contrast, labeling, and legibility.
Instructions
Render a fenestra/1 UI description to a typed accessibility tree, a downscaled preview image, and automatic accessibility warnings (contrast, labeling, per-text-node legibility). Read the access tree first; the full-resolution PNG comes back as a resource_link.
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": {
"description": "<description>"
},
"name": "render_ui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Window size as `WxH` (default `800x600`). | |
| theme | No | Optional theme: a `ThemeSpec` object, or `{"preset":"dark"}`. | |
| description | Yes | The UI description: a `fenestra/1` JSON object. |