Source: blog.google/innovation-and-ai/technology/developers-tools/gemini-api-mid-conversation-updates
Until now, changing the system instruction or tools in a session invalidated the prompt cache, so the model reprocessed the whole conversation. Developers had worked around this by sending new rules as user messages, which carry less weight and can be imitated by users, or by rewriting the system instruction and accepting the added cost and latency.
The new system_input step can be sent at any turn and carries the same authority as the top-level system instruction, taking precedence over user messages while earlier turns stay cached. To use it, developers pass the previous turn's ID in previous_interaction_id and place a system_input step before user_input, keeping the top-level system_instruction unchanged. Each system_input stays active for the rest of the session, and when instructions conflict the model favors the most recent one.
Tool updates use added_tools and removed_tools on the system_input step while the top-level tools list stays the same. Only function tools are supported for now, not MCP server tools. There is no separate fee, as system_input tokens are billed at standard input rates for the model called. The feature is in public preview across all Gemini 4 models through the v1beta endpoint, and support for Gemini Enterprise Agent Platform is coming soon.
Why it matters if you build agents
Agents can add permissions, spending limits or a tool freeze partway through a session without paying to reprocess the full history. Tool removals can also carry a short text note so the model can explain why an action is unavailable.
Google's documentation treats these steps as orchestration controls, so your application should still authorize every function call on the backend and keep untrusted or end-user content out of system_input.
Get stories like this every weekday
One short email with the day's agent tooling news.