generate_screen
Turn a text prompt into a UI screen with a unique ID and full HTML. Set project, model, and device type to generate the interface.
Instructions
Generate a new UI screen from a text prompt. Returns the screen ID and full HTML content.
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": {
"projectId": "<projectId>",
"prompt": "<prompt>"
},
"name": "generate_screen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Design prompt describing the desired UI | |
| modelId | No | Model to use for generation (default: GEMINI_3_FLASH) | |
| projectId | Yes | Project ID to generate screen in | |
| deviceType | No | Target device type (default: DESKTOP) |