Developer Builds Stateful Image-Editing Skill for Claude Code Using Google Gemini API
A developer has released an open-source project called nb2lite-skill-claude that integrates Google's Gemini image model into Claude Code as a stateful image-editing skill. The tool wraps the gemini-3.1-flash-lite-image model in a FastMCP server, allowing users to generate and iteratively refine images directly within a Claude Code session. Unlike typical stateless image workflows, it leverages Google's Interactions API, which preserves visual context server-side across multiple editing turns using a chained interaction ID system. Users can issue short follow-up prompts like 'add a lantern in its paw' without re-describing the full scene, as the model retains character, lighting, and composition from prior turns. The project ships as both a Model Context Protocol server and a Claude Code skill, making it compatible with any MCP-capable AI client.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in