Skip to main content
Glama

Generate an image with Antigravity

antigravity_image

Generates 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

TableJSON Schema
NameRequiredDescriptionDefault
promptYesDescription of the image to generate.
output_pathNoWhere to save. Absolute, or relative to `workspace`. If omitted, a timestamped name under `workspace` is used.
workspaceNoWorking directory for the conversation. Defaults to cwd.
timeout_sNoMax seconds to wait for agy to complete. Default 240 (image generation is slower than text).
watchNoIf 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

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond annotations (readOnlyHint false, openWorldHint true), the description adds valuable behavioral context: it consumes AI Pro quota, saves the image, returns path/format/size, and notes that the extension may be corrected. It also mentions unsandboxed session and same privileges as other tools.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, with two paragraphs that front-load the main purpose. Every sentence adds essential information (quota, file output, format behavior, security note). No redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers key aspects: output details (path, format, byte size), format selection, execution context (unsandboxed, same privileges), and quota usage. It references a security note from elsewhere. An output schema exists but is not shown; still, the description sufficiently explains return values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the description adds minimal extra detail for parameters. It restates that output_path can be absolute/relative and timeout_s default is 240, but these are already in the schema. The format correction note is a minor addition.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states that the tool generates an image using Antigravity (Gemini image model via agy CLI). It distinguishes itself from sibling tools like antigravity_ask (text generation) and antigravity_image_swarm by focusing on single image generation with file saving.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains the tool's behavior (quota usage, file path return) but does not explicitly state when to use this tool versus alternatives like antigravity_image_swarm. It lacks guidance on appropriate prompts or scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SinanTufekci/antigravity-intern'

If you have feedback or need assistance with the MCP directory API, please join our Discord server