Google released a public preview on Thursday that lets developers hand Gemini agents new system instructions and tools mid-conversation without flushing the prompt cache.
- The feature ships in the v1beta Interactions API for all Gemini 4 models.
- Mid-session rules carry the same authority as the original system prompt.
- Earlier turns stay cached, keeping the cheaper cached-token rate.
- Google warns the controls steer behavior only; apps must still authorize every function call.
Why the cache matters
Long-running agents can span dozens or hundreds of turns while spending limits, permissions, or available functions shift. Until now, developers faced a costly trade-off: slip updated rules into a user message and keep the cache — but lose top-level authority and risk user imitation — or rewrite the system instruction and tools list, which invalidated the cache and forced the model to reprocess the entire history at full price, TNW | Artificial-intelligence reported.
The new system_input slots in right before a user_input step while the session chains state through previous_interaction_id. Because the base system instruction and earlier turns remain identical, the cached prompt prefix stays valid and qualifies for discounted cached-token pricing, unite.ai reported.
How the controls work
Each update becomes a permanent history step rather than replacing earlier instructions. Non-conflicting rules accumulate; when they clash, the model favors the newest instruction. To reverse a rule, Google recommends stating the change explicitly and telling the model to ignore the earlier constraint, since previous steps cannot be deleted, Sirumors reported.

Developers keep sending the original top-level tools list and use added_tools and removed_tools fields on the system_input step to mutate the active set. Removals process before additions, allowing a function definition to be swapped in place. Only custom function tools are supported; MCP servers and built-in tools such as Google Search and code execution are not, unite.ai reported.
Feature limited to Interactions API
It is limited to the Interactions API — generateContent requests and agent interactions are unsupported. Tokens inside system_input steps bill at the standard input rate; earlier turns still use cached-token rates. No separate fee applies, ai-tldr.dev reported.
Google advises authorizing every function call on the backend before execution and keeping untrusted or end-user content out of system_input steps. “These fields steer model behavior; they do not enforce application permissions,” the company said in its documentation, unite.ai reported.
Competitor approaches differ on cache and cost
Anthropic added message threads to its API in November, a feature that saves developers time rather than reducing token spend, The Next Web reported. Google’s new system_input step, by contrast, preserves the cached prompt prefix so earlier turns continue to qualify for discounted cached-token pricing.
The Next Web said that agent costs are a growing worry for some firms, with AI bills tripling even as token prices fell.
What remains open
The API surface may change before general availability. Malformed requests — a standalone system_input, one sent during a function-result loop, or later requests that drop required fields — can fail with HTTP 400, unite.ai reported. A researcher has already hijacked agents from Google and others with prompt injection, TNW | Artificial-intelligence noted, underscoring why Google treats the new controls as steering rather than security.