Generate an image with Antigravity
antigravity_imageGenerates a raster image from a text description using the Gemini image model via agy CLI, saves it to a specified path, and returns the file path, format, and size.
Instructions
Generate an image with Antigravity (Gemini image model via agy CLI).
Drives agy to produce a raster image on your existing AI Pro quota, saves it, and returns the absolute file path plus its real format and byte size. The host can then read the path to view the image.
agy picks the image format itself (JPEG for photo-like images, PNG for flat graphics), so the returned path's extension is corrected to match the actual bytes (a requested out.png may come back as out.jpg). Runs a normal, unsandboxed agy session — same privileges/caveats as the other tools (see the module SECURITY note).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of the image to generate. | |
| output_path | No | Where to save. Absolute, or relative to `workspace`. If omitted, a timestamped name under `workspace` is used. | |
| workspace | No | Working directory for the conversation. Defaults to cwd. | |
| timeout_s | No | Max seconds to wait for agy to complete. Default 240 (image generation is slower than text). | |
| watch | No | If true, open the live "watch" window that streams agy's steps and shows the finished image inline (same return value, best-effort). Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |