Dev.to
7/24/2026

Teaching Google Antigravity to Paint: A Stateful Image-Editing Skill Built on Gemini's Interactions API and MCP
Short summary
nb2lite-skill-agy wraps Google's gemini-3.1-flash-lite-image model in a FastMCP server and packages it as an Antigravity CLI skill, enabling stateful image generation and editing. The Interactions API preserves visual context across turns so you can say 'add a lantern' instead of re-prompting the entire scene. The server exposes four MCP tools (generate, edit, edit-local, and list) and handles interaction ID chaining, aspect ratio constraints, and thinking-level validation.
- •Google's NB2Lite model supports stateful image editing via the Interactions API, preserving visual context across turns
- •The project packages this as an MCP server plus an Antigravity CLI skill, enabling iterative image editing within coding agent sessions
- •MCP standardizes tool access so one server works with any MCP-capable client without per-client integration glue
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



