generate_from_template
Generate a customized UI screen from a predefined template (dashboard, login, pricing, etc.) by specifying style, device, and custom instructions for faster design.
Instructions
Generates a screen from a predefined UI template with user customizations. Provides 10 common templates (dashboard, settings, login, profile, pricing, landing-hero, data-table, kanban-board, chat-interface, file-manager) as a base prompt, layered with custom instructions for faster UI generation.
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>",
"template": "<template>"
},
"name": "generate_from_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Overall visual style. | modern |
| template | Yes | The base template to use. | |
| projectId | Yes | The project ID. | |
| deviceType | No | Target device type. | DESKTOP |
| customization | No | Custom instructions to layer on top of the template (e.g., 'use dark theme with purple accents, add a sidebar with user avatar'). |