Batch Results
gemini_batch_resultsRetrieve and save images from a completed Gemini batch job by providing the batch ID and output directory.
Instructions
Download and save images from a completed batch job.
Checks the batch status, retrieves the output JSONL from Gemini, decodes each image, and saves them to the specified output directory using the key as the filename.
Args:
batch_name (string, required): The batch ID (e.g. "batches/abc123").
output_dir (string, required): Directory where images will be saved.
Returns:
List of saved image paths (key → file path) and any errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_name | Yes | The batch ID (e.g. "batches/abc123") | |
| output_dir | Yes | Directory where images will be saved |