Gemini API: system instructions and tools can change mid-conversation without losing the cache
What happened
Google's Interactions API (v1beta) now lets you insert a "system_input" step before the user's message that changes instructions or adds and removes tools (added_tools, removed_tools). The cached prompt prefix stays valid, so the earlier part of the conversation is still billed at the lower cache rate. It works with all Gemini 4 models, only function tools are supported (not MCP), and there's no separate charge.
Why it matters
You can build a chat that unlocks tools in stages, for example after the user logs in, without paying for the whole context again. Google still advises authorizing every tool call on your backend.