Generate image
generate_imageGenerate a custom image for the page and return a hosted WebP URL to drop straight into an src. Pass the EXACT pixel size the layout needs — the image is rendered and resized to it, so the page ships no oversized bytes. Use for hero art, backgrounds, illustrations and abstract visuals. Prefer the user's own imagery when they have it (logos, product shots, team photos convert better); prefer CSS for plain gradients or geometric shapes, which need no image at all.
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": {
"prompt": "<prompt>",
"width": "<width>",
"height": "<height>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Delivered width in CSS pixels (32–2048). Use the size the layout actually renders at — for a full-width hero, 1600 is plenty. | |
| height | Yes | Delivered height in CSS pixels (32–2048). Together with width this sets the aspect ratio, so pass the real slot size (e.g. 1600x900 for a hero, 800x800 for a square card). | |
| prompt | Yes | What to render: subject + style + composition + palette + lighting + mood. Mention the brand accent colour for cohesion. For text-free art say "no text, no words, no letters" — rendered text is usually malformed. |