generate_image
Generate images from text prompts asynchronously; wait briefly for a PNG result or receive a job ID to poll for completion.
Instructions
Asynchronous prompt generation. Waits up to wait_seconds (default 20, capped at ~30s); if done returns the PNG path, otherwise a job_id for get_job.
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 |
|---|---|---|---|
| seed | No | ||
| steps | No | ||
| width | No | ||
| height | No | ||
| prompt | Yes | ||
| profile | No | ||
| sampler | No | ||
| cfg_scale | No | ||
| scheduler | No | ||
| batch_count | No | ||
| wait_seconds | No | Seconds to wait for the result (0..30, default 20) | |
| negative_prompt | No |