Google introduced a Gemini API preview that lets developers change agent instructions and function tools mid-conversation while preserving cached history.
Google announced on December 3, 2026, that developers can change system instructions and function tools during an ongoing Gemini API conversation without invalidating the prompt cache. The capability is in public preview through the Interactions API, which uses the v1beta endpoint.
Developers add a `system_input` step at a turn boundary, before the next user input. The new instruction remains active alongside the original system instruction, and takes precedence over user messages. If a later instruction conflicts with an earlier one, the newer instruction is followed. Earlier conversation turns remain eligible for cached-token rates, while the new input is billed at the model’s standard input-token rate; Google says the feature has no separate fee.
Function access can also be adjusted as a session progresses. Developers keep the top-level tools list unchanged and use `added_tools` and `removed_tools` to change which functions are available. Google says this currently supports function tools, but not MCP server tools. Changes persist until another system input updates them, and when a tool is both removed and replaced, the API processes the removal first.
The update is aimed at agent workflows where permissions, account status or available actions can change after a conversation begins. For example, an application could remove a refund function and add an escalation function when an account enters review. Google also cautions that these controls guide model behavior; applications still need to authorize function calls on their own backends and keep untrusted user content out of system inputs.
The preview is available across Gemini 4 models in the Interactions API. Google says support for Gemini Enterprise Agent Platform is planned for a later date, without specifying when.

