generate_image
Generate an image locally and write it with a manifest recording exactly how it was made; queued requests avoid memory contention.
Instructions
Generate an image locally and write it to out_dir, with a manifest recording exactly how it was made.
Takes 20s to several minutes depending on profile. Generation is serialised across this whole machine, so a second call waits rather than competing for memory.
The file is written as _.png; pass filename for an exact
name instead. Either way, use the path in the result rather than
predicting it.
commercial defaults to true, which REFUSES non-commercial profiles
(cinematic, kontext-edit). Pass false only if the output genuinely is not
commercial. Leave width/height/seed at 0 for the profile's defaults and
a random seed.
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>",
"out_dir": "<out_dir>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| stem | No | image | |
| width | No | ||
| height | No | ||
| prompt | Yes | ||
| out_dir | Yes | ||
| profile | No | standard | |
| project | No | ||
| filename | No | ||
| negative | No | ||
| commercial | No |