Fetch a Polza media generation by id
fetch_generationRetrieve a generated image by its media ID, optionally polling until the generation completes, then download it to a specified location.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | If true (default), polls until the generation reports 'completed' or 'failed', respecting POLZA_POLL_TIMEOUT_SECONDS. If false, returns the raw status without downloading. | |
| media_id | Yes | Polza generation id (e.g. 'gen_2158264963618050049'). Returned by the Polza API when an `images/generations` or `/v1/media` call switches to async mode or when the MCP client times out waiting for a synchronous response. | |
| output_path | No | Where to save the downloaded asset(s). If a file path with an extension is provided, saves the first asset there. If a directory is provided, saves using '<media_id>_<index>.<ext>'. If omitted, saves into IMAGE_OUTPUT_DIR. |