stitch_generate
Triggers a backend generative job to create Stitch screens or variants from prompts, device, project, and creative-range settings, with optional dry-run validation.
Instructions
Triggers a backend generative creation job for Stitch screens or variants. Mirrors 'stitch generate '.
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": {
"resource": "<resource>"
},
"name": "stitch_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of variants to generate (1-5) | |
| device | No | Device type: MOBILE, DESKTOP, TABLET, or AGNOSTIC | |
| dryRun | No | Validate arguments and preview without starting job | |
| prompt | No | Text prompt for screen or variant generation | |
| aspects | No | Target aspects for variants (LAYOUT, COLOR_SCHEME, TEXT_FONT) | |
| project | No | Stitch Canvas project ID | |
| resource | Yes | Resource type to generate | |
| creativeRange | No | Creative range: REFINE, EXPLORE, or REIMAGINE |