Generate Image with Google Flow
flow_generate_imageGenerate new images or illustrations from text prompts with Google Flow and save them to a chosen output directory or plugin data folder; poll job status if queued or running.
Instructions
Generate new images or illustrations from a text prompt using Google Flow (defaults to Nano Banana) and save them to outputDir or the plugin data folder. Use when the user asks to create new images; poll flow_job_status if status is queued or running.
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": "flow_generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of image variations to generate (1-4). | |
| model | No | Google Flow image model. Defaults to 'nano-banana' (selects the latest Nano Banana model available). | nano-banana |
| prompt | Yes | Detailed image prompt describing subject, action, setting, lighting, camera angle, and style. | |
| outputs | No | Deprecated alias for count. | |
| fileName | No | Optional safe filename stem; job ID prefix and image extension are appended automatically. | |
| accountId | No | Optional user-defined local account ID (e.g. 'default' or 'work'). Omit to use the active default account. | |
| outputDir | No | Absolute directory path where output files are saved (e.g. project .tmp). Omit to save inside the plugin data directory. | |
| aspectRatio | No | Output aspect ratio: 16:9 (landscape), 9:16 (portrait), 1:1 (square), 4:3, 3:4, or ui-default. | 16:9 |
| flowProject | No | Optional Google Flow project name to reuse or open. | |
| referenceFiles | No | Optional list of absolute paths to existing local images/videos used as reference frames or ingredients. | |
| outputDirectory | No | Deprecated alias for outputDir. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Human-readable failure summary when failed. | |
| files | Yes | Saved output files with absolute paths and metadata. | |
| jobId | Yes | Unique job UUID to poll with flow_job_status. | |
| model | No | Requested model ID. | |
| status | Yes | Normalized job status. | |
| progress | Yes | Estimated completion percentage (0-100). | |
| accountId | Yes | Local account ID used for the job. | |
| errorCode | No | Machine-readable error code when failed. | |
| mediaType | Yes | Generated media type. | |
| aspectRatio | No | Requested aspect ratio. | |
| detailStatus | Yes | Detailed internal pipeline state. |