edit_screens
Modify selected UI screens in a project using a text prompt to specify the edits you want.
Instructions
Edits existing screens within a project using a text prompt.
Instructions for Tool Call:
This action can take a few minutes to complete. Please be patient. DO NOT RETRY.
If the tool call fails due to connection error, the process may still succeed.
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>",
"selectedScreenIds": "<selectedScreenIds>",
"prompt": "<prompt>"
},
"name": "edit_screens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Required. The input text to generate the screen from. | |
| modelId | No | Optional. The model to use for generation. | |
| projectId | Yes | Required. The project ID of screens to edit, example: '4044680601076201931', without the `projects/` prefix. | |
| deviceType | No | Optional. The type of device that captured the screenshot, e.g., mobile or desktop. | |
| selectedScreenIds | Yes | Required. The screen IDs of screens to edit, 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. |