generate_screen_from_text
Generate a UI screen from a text description for your Stitch project. Define the target device type to produce a screen matching your design intent.
Instructions
Generates a new screen from a text prompt describing the desired UI.
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_from_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the screen to generate. | |
| projectId | Yes | The Stitch project ID. | |
| deviceType | No | Target device type. | MOBILE |