Generate an image with Antigravity
antigravity_imageGenerates an image from a text prompt with Gemini on your AI Pro quota, saves it, and returns its absolute path, real format, and byte size for viewing.
Instructions
Your only image generator: makes an image with Gemini (agy CLI) on the user's AI Pro
quota, saves it, and returns its absolute path, real format and byte size (read the
path to view it). agy picks the format, so the extension is corrected to the bytes
(out.png may come back as out.jpg). Relative paths land in workspace. For several
images, use antigravity_image_swarm. Runs an unsandboxed agy session: trusted
prompts only.
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": "antigravity_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| prompt | Yes | Description of the image to generate. | |
| timeout_s | No | Max seconds to wait for agy to complete. Default 240 (image generation is slower than text). | |
| workspace | No | Working directory for the conversation. Defaults to cwd. | |
| output_path | No | Where to save. Absolute, or relative to `workspace`. If omitted, a timestamped name under `workspace` is used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |