Generate Image
generate_imageGenerate AI images into the project's asset storage, for PROJECT-SPECIFIC imagery (mascots, illustrations, app icons, a particular style); generate them BEFORE building the components that use them. Returns project-relative paths (/_cdn/static/...) that resolve on the app's own domain: use them in code, or as the app icon via update_project_metadata iconUrl. An image you already hold as a file goes in with upload_asset. To edit or restyle an image, or keep a character, product or logo consistent, pass it in reference_images (this project's stored assets only: upload an outside image or the user's photo first) and say in the prompt what to change.
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>",
"images": "<images>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| images | Yes | ||
| projectId | Yes |