generate_screen
Turn a text prompt into a project UI screen, with optional device type selection for mobile, desktop, or tablet.
Instructions
Generate a UI screen from a text prompt within a project
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 | Text prompt describing the desired screen (e.g., 'A login page with email and password fields') | |
| projectId | Yes | The ID of the project to generate the screen in | |
| deviceType | No | Target device type |