gemini_get_result
Retrieve the result of an asynchronous generation by passing its job_id. Gets media outputs or raises the recorded error, including recovery for killed background jobs.
Instructions
Retrieve a generation started with async: true or handed off by max_wait_ms. Pass the returned job_id: while running it reports status "running"; on completion it returns the normal result (image URLs/paths + meta); on failure it raises the recorded error, including the case where the generation was killed before it finished. On the hosted connector job records are stored durably and survive a restart; on a local stdio server they live with the process and expire ~10 min after completion, where the output dir / .json sidecar is the fallback. A killed video/music job started with background: true is recovered from its upstream interaction when it finished there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job_id returned by a generation tool called with async: true | |
| output_dir | No | Where to write media recovered from a killed job (default: $GEMINI_OUTPUT_DIR or cwd) |