Google adds mid-conversation instructions and tool updates to Gemini API
Google launched a public preview in the Gemini API that lets developers update system instructions and tools mid-session while keeping the prompt cache intact.

Google released a public preview on December 3, 2026, allowing developers to change system instructions and active tools during a live Gemini API session. The capability is built into the Interactions API on the v1beta endpoint and works across Gemini models. Developers can adjust an AI agent's rules and permissions mid-conversation without invalidating the existing prompt cache.
The update adds a system_input step that applications send right before a user turn while chaining state through previous_interaction_id. Because the base system instructions and earlier turns stay unchanged, the cached prompt prefix remains valid and qualifies for discounted cached-token pricing. Mid-session instructions hold the same priority as initial system prompts, accumulate over time, and override earlier conflicting rules. Developers can also pass added_tools and removed_tools fields in the same step to enable or revoke function tools on the fly, with removals processed before additions.
Long-running AI agents often span dozens or hundreds of turns where user permissions, authentication status, or spending limits change. Previously, developers faced a costly tradeoff between two flawed workarounds. Placing updated rules inside user messages preserved the cache but lacked system authority and risked user manipulation, while editing top-level instructions broke the cache and forced the model to reprocess the entire history.
The feature is available now in public preview with no separate fee beyond standard input token pricing for new system_input steps. Because earlier history steps cannot be deleted, Google advises developers who need to undo a rule to state the change clearly and tell the model to ignore the earlier constraint.
The day's biggest AI news in one short email, every morning. Plus an instant heads-up when a reset or a big release lands.
More on Google DeepMind
- Dec 3OpenClaw expands ShellBench to 19 AI models as GPT-6 Astra holds leadOfficial
- Dec 3Google releases MedGemma 2 open health AI models across Hugging Face and cloud platformsOfficial
- Dec 33 Gemini holiday trendsOfficial
- Dec 2Meta reportedly close to leasing Google AI chips from Blackstone-backed Crux AINews
- Dec 2Google DeepMind releases Gemini 4 Live and Gemini 4 Live Translate audio modelsOfficial
- Dec 2Former Google chief scientist Jeff Dean raises $1.2 billion for Discovery LoopNews