Execute Image Task
executeImageTaskGenerate images from text prompts through the nanobanana extension, yielding saved file paths and execution metadata for automated workflows.
Instructions
Uses the nanobanana extension to generate images and returns saved image paths plus execution metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory for generated image output | |
| count | No | Optional number of images to generate | |
| prompt | Yes | Image generation prompt for the nanobanana extension | |
| styles | No | Optional style names passed to nanobanana | |
| timeoutMs | No | Optional timeout in milliseconds | |
| variations | No | Optional variation names passed to nanobanana | |
| approvalMode | No | Optional Gemini CLI approval mode. Defaults to yolo for nanobanana. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| args | Yes | ||
| signal | Yes | ||
| stderr | Yes | ||
| stdout | Yes | ||
| aborted | Yes | ||
| command | Yes | ||
| exitCode | Yes | ||
| timedOut | Yes | ||
| elapsedMs | Yes | ||
| imagePaths | Yes | ||
| errorMessage | No | ||
| responseText | Yes | ||
| primaryImagePath | No | ||
| workingDirectory | No | ||
| effectiveApprovalMode | No |