Google has announced a Gemini API preview for changing system instructions and custom function tools mid-conversation without invalidating earlier cached turns. The December 3 announcement introduces a system_input step in the Interactions API, letting developers append instructions without rewriting the initial prompt. SourceSource
According to Google’s documentation, editing the initial system instructions or top-level tool list otherwise forces the model to reprocess the full conversation history. A lot of rereading for one new rule. Source
Google says there’s no separate feature fee, but tokens in new system_input steps are billed at standard input-token rates. Earlier turns remain eligible for cached-token rates. Keeping the cache intact is not the same as making the conversation free. Source
A new rule, not a clean slate
Google says system_input carries the same authority as the top-level system instruction and takes precedence over user messages. Suggested uses include adding a budget cap discovered mid-session, reinforcing a formatting rule or enabling a function after a user authenticates. SourceSource
Developers must pass the previous turn’s ID through previous_interaction_id and put at most one system_input directly before user_input. It cannot arrive on its own or during a function-calling loop. This is a turn-boundary update, not a way to interrupt the model whenever inspiration strikes. Source
The instructions also accumulate. Each system_input stays in context for the rest of the conversation and cannot be removed; it doesn’t replace the top-level system_instruction or earlier updates. Nonconflicting rules keep applying, while the model favors the most recent instruction when rules conflict. Google recommends explicitly explaining which earlier rule is being reversed. Source
To preserve the cached prefix, Google advises keeping the top-level system_instruction unchanged. Developers must also keep passing the original top-level tools list, using added_tools and removed_tools inside system_input to change the active functions instead. SourceSource
The tool-support asterisk matters
Google’s documentation limits these updates to custom function tools. MCP servers and built-in tools such as Google Search and code execution are explicitly excluded. A rollout post from @_philschmid mentions adding MCP servers, so the social announcement and documentation disagree on that point. The explicit documented limit is the scope to build against. SourceSource
Google’s example removes an issue_refund function and adds create_escalation_ticket when an account goes under billing review. The conversation continues; the refund function leaves the model’s tool menu. Tool changes persist until another system_input changes them, and removals are processed before additions when both appear in one step. Source
There’s a bookkeeping catch: functions declared in the original top-level tools list must stay there on subsequent requests, even after they’re removed from the active set. Dropping one returns HTTP 400, as does re-declaring an active function introduced through added_tools in that list. Source
Where the preview works
The documentation lists three supported models: gemini-4-carbon, gemini-4-neon and gemini-4-hydrogen. The feature requires the v1beta Interactions API and works only with its model interaction type—not agent interactions or the separate generateContent method. Developers can use it in their own agent applications, but that doesn’t make the API’s agent interaction type supported. Google warns that the interface may change before general availability. Source
Finally, changing the model’s tool menu is not an authorization system. Google says applications should still authorize every function call on the backend before executing it and keep untrusted external or end-user content out of system_input. The cache gets to keep its work. Your backend still has to do its own. Source
Comments