On December 3, 2026, Google added mid-conversation system instructions and tool changes to the Gemini API. They are in public preview across all Gemini 4 models in the Interactions API (the v1beta endpoint).
Quick answer: you can now send a system_input step at any turn to add a rule or change which tools an agent may call. Google says it “carries the same authority as your top-level system instruction and takes precedence over user messages”, while earlier turns stay in the prompt cache. There is no separate fee.
The problem it solves
Long-running agents work across many turns, and their rules, permissions and tools change along the way. Google says developers had two workarounds, both flawed:
- Putting new rules in a user message keeps the cache, but those rules “don’t carry the same weight” as system instructions and users can imitate them.
- Rewriting the system instruction or tools gives the rule full weight, but invalidates the prompt cache, so the model reprocesses the whole conversation, which adds cost and latency.
How it works
- Pass the previous turn’s ID in
previous_interaction_idand put asystem_inputstep directly before theuser_inputstep. - Keep the top-level
system_instruction(and tools list) unchanged on every turn, so the cached prefix stays valid. - Each
system_inputstays active for the rest of the session. If a newer one conflicts with an earlier rule, Google says the model favours the most recent. - One
system_inputper turn, with text, tool updates or both. - Tools: use
added_toolsandremoved_toolsinsidesystem_input. Removals are applied before additions, so you can replace a tool in place. Only function tools are supported for now, not MCP server tools. - Every
system_inputshows up in order when you retrieve the interaction, which helps with auditing agent traces.
What Google suggests using it for
- Rules discovered mid-session, such as account entitlements or spending limits.
- Re-stating key format, tone or policy rules deep into a long session.
- Turning write tools on after sign-in or plan approval, and off again for read-only review.
- Disabling a tool when a service goes down, then restoring it.
- Starting with a small tool set and adding tools as the task needs them.
Pricing and availability
Google says mid-conversation instructions have no separate fee: tokens in system_input steps are billed at the model’s standard input rate, and earlier turns stay eligible for cached-token rates. Support for Gemini Enterprise Agent Platform is “to come soon”. Google’s own example uses gemini-4-neon.
A safety note from Google
Google says system_input, added_tools and removed_tools steer the model but are orchestration controls, not security: your app “should still authorize every function call on the backend” and keep untrusted user or web content out of system_input.
Why it matters
This makes the approval pattern in our AI agent permissions checklist cheaper to run: you can unlock a tool only after a human says yes, without paying to reprocess the whole chat. For wording, see how to write voice agent prompts (the same system-prompt rules apply) and our prompts for proactive AI assistants. Gemini 4 models are tracked on the Gemini page and in our AI model tracker.
Source: Google blog. We summarise in our own words; check the source for the full details. For every current model, its release date and status, see our AI model tracker.
Contribute your creativity