Generate image
generate_imageGenerate an image with gpt-image-2 (native — no third-party service) and store it; returns a signed URL. Use it to produce an 'after' mockup for a before/after comparison, or any illustrative image. Prompt for the job: abstract/clean, no text unless asked, say the aspect ratio. Pair the URL with a 'before' (capture_screenshot or an uploaded image) via add_before_after.
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>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Image size (default 1024x1024). 1536x1024 = wide, 1024x1536 = tall. | |
| prompt | Yes | What to generate. Be specific; say 'no text/lettering' unless text is wanted. |