Generate Page
sp_generateGenerates a UI page from a text prompt, automatically applying WCAG accessibility fixes, responsive breakpoints, and design system rules, with optional framework conversion.
Instructions
Generate a UI page with optional design system enforcement, accessibility fixes, responsive breakpoints, and framework conversion
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>",
"projectId": "<projectId>"
},
"name": "sp_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of the page to generate | |
| projectId | Yes | Stitch project ID | |
| deviceType | No | Target device | DESKTOP |
| framework | No | Output framework | html |
| componentLibrary | No | Component library to map to | none |
| accessibility | No | Run WCAG 2.1 AA audit and auto-fix | |
| responsive | No | Inject responsive breakpoints | |
| designSystemId | No | ID of a previously created design system |