generate_and_fetch_code
Generate a UI screen from a text prompt and retrieve its HTML code in one step, simplifying prototyping.
Instructions
One-step tool to generate a UI screen and immediately retrieve its HTML code
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>",
"prompt": "<prompt>"
},
"name": "generate_and_fetch_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text prompt describing the desired screen | |
| projectId | Yes | The ID of the project | |
| deviceType | No | Target device type |