Generate Screen
stitch_generate_screenGenerate a new UI screen in Google Stitch from a text prompt, using a specified project or falling back to the first available, with device and model selection.
Instructions
Generate a new UI screen in Google Stitch from a text prompt. Uses the specified project or falls back to the first available project. Supports model selection (GEMINI_3_PRO, GEMINI_3_FLASH, GEMINI_3_1_PRO).
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": {
"prompt": "<prompt>"
},
"name": "stitch_generate_screen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the generated screen | |
| device | No | Device type | mobile |
| prompt | Yes | Design prompt for the screen | |
| modelId | No | Model to use for generation | |
| projectId | No | Stitch project ID |