Google has added mid-conversation instructions to the Gemini API. Developers can now change system instructions and add or remove tools partway through a session while keeping the prompt cache built up in earlier turns. Google announced the public preview on December 3. It works through the Interactions API on the v1beta endpoint.
The mechanism is a new system_input step. A developer sends it directly before a user_input step and references the previous turn with previous_interaction_id. The top-level system_instruction and tools list stay unchanged, which keeps the cached prompt prefix valid. Each system_input is recorded in the history as its own step and stays in force for the rest of the session. If two conflict, the model follows the most recent one. Retrieved interactions list every system_input step in order, which Google says helps with auditing and debugging.
Tool changes use added_tools and removed_tools fields inside a system_input step. They currently apply only to function tools, not to MCP server tools. When a step includes both fields, removals are processed first. There is 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 pricing after instructions or tools change.
Google lists several uses: applying constraints that surface mid-session, such as account entitlements or spending limits; reinforcing tone or policy rules in long conversations; turning on write tools only after a user authenticates or approves; disabling a tool when a dependency goes offline; and starting with a small tool set that grows as needed. The feature covers all Gemini 4 models in the Interactions API, with support for Gemini Enterprise Agent Platform listed as coming soon.
For agent builders, this removes a common trade-off. Until now, changing an agent's permissions or rules mid-session usually meant rebuilding the prompt and losing the cache, or stuffing guidance into user messages. Google's guidance still says to authorize every function call on the backend and to keep untrusted user content out of system_input, so the feature is a way to steer the model, not a security boundary.