generate_image
Submit a text prompt to generate an image asynchronously; receive a task ID to poll for completion.
Instructions
Generate an image from a text prompt (async). Returns taskId for status polling via get_task_status
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>",
"outputPath": "<outputPath>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Image size, e.g. 1024x768 | 1024x768 |
| prompt | Yes | Text prompt for image generation | |
| outputPath | Yes | Local path to save the image |