Tool updates stay in effect until a later system_input changes them. When a single step includes both fields, the API processes removed_tools before added_tools, letting you replace a tool definition in place. Adding a short text note when removing a tool also gives the model context to explain why an action is unavailable.
Keep in mind that system_input, added_tools, and removed_tools steer model behavior and serve as orchestration controls. Your application should still authorize every function call on the backend before executing it and keep untrusted external or end-user content out of system_input.
How you can use it
Session-dependent constraints: Apply rules discovered partway through a conversation, such as workspace settings, account entitlements, or spending limits.
Long-horizon instruction reinforcement: Re-emphasize key formatting, tone, or policy rules deep into multi-turn sessions as context grows.
Dynamic permissions and mode switches: Enable write or account-action tools after authentication or plan approval, and remove them when returning to read-only review.
Live operational changes: Disable a tool and update guidance mid-session when a downstream dependency goes offline, then restore it once service recovers.
Large tool catalogs: Start with a small set of tools and add more as the task needs them, without declaring every tool up front or breaking the cache.
How pricing and supported models work
Mid-conversation system instructions carry no separate fee. Tokens in system_input steps are billed at the standard input token rates for the model you call. Earlier turns remain eligible for cached-token rates when rules or tools change.
Mid-conversation system instructions are available in public preview across all Gemini 4 models in the Interactions API (through v1beta endpoint), in the Gemini API. Support for Gemini Enterprise Agent Platform to come soon.
Get started today by reading the documentation, comparing Gemini models to find the right Gemini 4 model for your workload, and join the discussion on the AI Developer Forum.