Google adds mid-conversation system instruction changes to Gemini API
The Interactions API's new system_input step lets agents change rules and tools mid-session while earlier turns stay cached.

Google has added mid-conversation changes to system instructions and tools in the Gemini API, now in preview through the Interactions API. According to Google, agents can adopt new rules and tools during a session without rereading the whole conversation. The company says this avoids the higher costs that come with a broken prompt cache.
Long-running agents can pass through dozens or hundreds of turns, and their rules, permissions and tools change along the way. Google points to two older approaches, and both have drawbacks. According to Google, a new rule sent as a user message carries less weight than the top-level system instruction, and users can imitate it. Changing the system instruction or the tools breaks the prompt cache, so the model reprocesses the history at extra cost and latency.
How system_input works
It stays active for the rest of the session. When a newer step conflicts with an earlier one, the model favors the most recent.
Developers adjust the callable functions with added_tools and removed_tools instead. Only function tools work today, and MCP server tools are not supported. If one step has both fields, the API handles removed_tools first, which allows a tool definition to be replaced in place.
Google calls these fields orchestration controls that steer the model. There is no separate fee. The preview covers all Gemini 4 models on the v1beta endpoint. Google says support for Gemini Enterprise Agent Platform is coming soon.
