generate_image
Create images from text prompts using OpenAI-compatible APIs and save them to local files for visual content generation.
Instructions
Generate one or more images from a prompt with an OpenAI-compatible image endpoint and save them to local files.
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>",
"output_dir": "<output_dir>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| output_dir | Yes | ||
| filename_prefix | No | ||
| count | No | ||
| size | No | ||
| quality | No | ||
| background | No | ||
| moderation | No | ||
| output_format | No | ||
| output_compression | No | ||
| user | No |