Skip to main content
Glama

Generate an image with Antigravity

antigravity_image

Generate an image from a text prompt with Gemini, save it to disk, and return its absolute path, actual format, and byte size so you can view it.

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

NameRequiredDescriptionDefault
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.
promptYesDescription of the image to generate.
timeout_sNoMax seconds to wait for agy to complete. Default 240 (image generation is slower than text).
workspaceNoWorking directory for the conversation. Defaults to cwd.
output_pathNoWhere to save. Absolute, or relative to `workspace`. If omitted, a timestamped name under `workspace` is used. An existing file is never replaced: a taken name gets -1, -2, …

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.40.0
    • changedInput schema / properties / output_path / description
      Previous value: -"Where to save. Absolute, or relative to `workspace`. If\n         omitted, a timestamped name under `workspace` is used."New value: +"Where to save. Absolute, or relative to `workspace`. If\n         omitted, a timestamped name under `workspace` is used. An\n         existing file is never replaced: a taken name gets -1, -2, …"
  2. First observedv0.11.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the supplied annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false) by disclosing that it consumes the user's AI Pro quota, that it runs an *unsandboxed* session, and that the returned extension is corrected to match the actual bytes (out.png may come back as out.jpg). These are material behavioral facts an agent could not infer from structured fields.

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

Conciseness4/5

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

Front-loads the identity and core behavior, then layers scoping, format quirk, sibling routing, and safety in descending importance. Some clauses are dense run-ons ('...byte size (read the path to view it)'), but no sentence is expendable.

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

Completeness5/5

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

For a write-side-effect, open-world generator with an output schema already present, the description covers everything an agent needs: cost/quota implications, sandbox posture, path resolution rules, overwrite behavior cross-referenced by the schema, and the multi-image alternative. Nothing material is left to inference.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description adds real meaning by explaining that relative paths land in `workspace` (clarifying the interplay between output_path and workspace) and that the format is chosen by agy rather than the caller. It does not elaborate on `watch` or `timeout_s`, but those are already fully documented in the schema.

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?

States a specific verb and resource ('makes an image with Gemini (agy CLI)'), the side effects (saves it), and the return contract (absolute path, real format, byte size). It also explicitly positions itself against the sibling 'antigravity_image_swarm' for multi-image work, so an agent can distinguish it without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit alternative with the condition that selects it ('For several images, use antigravity_image_swarm') and an explicit safety precondition ('trusted prompts only') that gates when the tool may be used at all. The only minor gap is no guidance on timeout or watch usage, which the schema already covers.

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