generate_variants
Generate design variations of selected screens using a text prompt; configure count, creative range, and aspects to explore alternatives within a project.
Instructions
Generates variants of existing screens within a project using a text prompt.
Instructions for Tool Call:
If the tool fails with a timeout, don't retry. Instead, try to get the screen with
get_screenmethod every 30 seconds for up to 10 times before giving up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Required. The input text used to generate the variants. | |
| modelId | No | Optional. The model to use for generation. | |
| projectId | Yes | Required. The project ID of screens to generate variants for, example: '4044680601076201931', without the `projects/` prefix. | |
| deviceType | No | Optional. The type of device that captured the screenshot, e.g., mobile or desktop. | |
| variantOptions | Yes | Required. The variant options for generation, including the number of variants, creative range, and aspects to focus on. | |
| selectedScreenIds | Yes | Required. The screen ids of screen to generate variants for, example: ['98b50e2ddc9943efb387052637738f61', '98b50e2ddc9943efb387052637738f62'], without the `screens/` prefix. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | The project ID of the generated screen. This is the same as the input project ID. | |
| sessionId | No | The session ID of the generated screen. | |
| outputComponents | No | The generated output components. |