buymeatokens

Gemini Interactions API System Input and Tool Updates

Use Gemini system_input to change rules or tool availability mid-conversation while preserving earlier cached context.

By the buymeatokens team1 min read

Short answer

The Gemini Interactions API v1beta supports system_input steps for adding instructions and updating function tools in an existing conversation.

On this page
  1. Pass the update before the next user turn
  2. Change tool availability in your application too
  3. Measure whether cached usage survives the update
  4. Frequently asked questions

The December 3 Gemini Interactions API preview adds system_input. An application can append a new instruction or change available function tools after a conversation starts. Google lists support for Gemini 4 Carbon, Neon, and Hydrogen. Gemini release notes

Pass the update before the next user turn

Send the previous turn’s ID in previous_interaction_id. In the new input array, place the system_input step immediately before the user_input step. Keep the starting system instructions stable and apply the update at the point it becomes relevant. An example is enabling an invoice lookup after the user finishes signing in. Mid-conversation instructions guide

Change tool availability in your application too

Use added_tools and removed_tools for the model’s available functions. When an account disconnects, update the model’s tool list and revoke access in the application backend. That protects against a queued tool call from an earlier turn. Test the flow with a user who signs in, requests a lookup, and signs out while the response is pending. MCP tools and token overhead

Measure whether cached usage survives the update

Run a conversation with a long stable prefix and make one tool or policy change. Inspect cached token usage before and after the update. In a control run, edit the original instructions and repeat the request. Keep the model and conversation otherwise consistent so the comparison isolates the changed prefix. Prompt caching explained

Frequently asked questions

Is system_input generally available?

Google released it in public preview on v1beta. Pin and test your client against that version.

Can I remove a tool the user no longer has access to?

Yes. Use removed_tools and enforce the same current permissions in the code that runs tool calls.

Where do I place a new budget cap?

Add it as a system instruction before the next user turn and enforce the actual spending limit in your application.