codex_generate_image
Generate AI images through Codex: specify a prompt and destination folder; the tool waits, copies results, and returns file paths.
Instructions
Ask Codex (new chat in project) to make an image with its image_gen tool, wait, and copy the
result(s) into dest_dir. Returns the copied file paths; open them with your image viewer/Read tool.
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>",
"dest_dir": "<dest_dir>"
},
"name": "codex_generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| project | No | scratch | |
| dest_dir | Yes | ||
| timeout_s | No |