Can You Change Instructions Mid-Conversation In The Gemini API?
AIThis post was created with the assistance of artificial intelligence (AI).

🔍 Read the full analysis: Can You Change Instructions Mid-Conversation In The Gemini API? on ThorstenMeyerAI.com

Before you orderOffer from Amazon

Get the latest gadgets delivered free with Prime

  • Fast, free delivery on millions of items
  • Prime Video, Amazon Music and more included
  • Member-only deals all year
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

TL;DR

Google has made mid-conversation updates to system instructions and supported function tools available in preview through the Gemini API’s Interactions API. The method is designed to preserve cached earlier turns, but Google has not published independent performance results, and MCP server tools are not supported for updates.

Google announced on December 3, 2026, that developers using the Gemini API can update system instructions and supported function tools during an ongoing conversation through the Interactions API. The preview is designed to let agents respond to changing rules or permissions while keeping earlier conversation tokens cached, rather than reprocessing the entire history after an update.

To add an instruction, a developer continues the conversation using the prior interaction’s ID and places a system_input step before the next user_input. Google says this step has the authority of a top-level system instruction and takes precedence over user messages. Developers are advised to leave the top-level system instruction unchanged; each new system_input is appended and remains active for the rest of the session.

For tool updates, Google recommends keeping the top-level tools list unchanged and using added_tools and removed_tools in system_input to change which function tools are available. The preview supports updates to function tools, but not MCP server tools, according to the company. Interaction records show system_input steps alongside user inputs and model responses, which Google says can help developers inspect and debug an agent’s history.

Google’s examples illustrate how the feature could be used when circumstances change mid-session. An infrastructure assistant could receive an instruction to recommend read-only diagnostics during a deployment freeze. A billing agent could have a refund function removed and an escalation function added. These are examples of intended use, not reported results from customer deployments.

At a glance
announcementWhen: Announced December 3, 2026; available i…
The developmentGoogle announced a Gemini API preview that lets developers add system instructions or update supported function tools at a turn boundary in an ongoing conversation.
Gemini API · Briefing

Changing agent rules mid-conversation

Google’s preview lets developers update instructions and supported function tools during an ongoing conversation while keeping earlier prompt tokens cached.

Dec 3, 2026
Google announced the preview
Dozens or hundreds
Turns long-running agents may span

What changes for developers

The Interactions API can add higher-authority instructions at a turn boundary while preserving earlier conversation tokens.

Previously
  • New rules sent as user messages had less authority.
  • Changing top-level instructions or tools invalidated the cache.
With the preview
  • Add a system_input step before the next user_input.
  • Keep earlier turns cached as new instructions take effect.

How to apply an update

Link the next interaction to the previous one and keep top-level settings consistent.

1
Pass the prior interaction ID

Continue the conversation using previous_interaction_id.

2
Add system_input

Place it immediately before user_input; it remains active for the rest of the session.

3
Update function tools

Use added_tools and removed_tools while keeping the top-level tools list unchanged.

Preview limits

The announcement describes intended behavior, not independent performance results.

Supported

Function tools

Developers can add or remove function tools during a conversation.

Not supported

MCP server tools

The preview does not support updates to MCP server tools.

Unspecified

Savings and rollout

Google gives no specific cost or latency savings, or schedule for leaving preview.

EvaluateTest the preview against real workloads; the announcement offers examples but no independent measurements of cache savings, latency, or reliability.
The takeaway
Mid-session instruction updates give developers a way to adapt agent rules while retaining cached history, with practical impact still to be measured.

Changing Agent Rules Without Reprocessing History

The update addresses a design problem for long-running agents: their rules, permissions, or available actions can change after a conversation has started. Previously, developers could add the new direction as a user message, but Google says that did not carry the same authority as a top-level system instruction. Alternatively, they could change the top-level instruction or tool list, which, according to Google, invalidated the prompt cache and required the model to reprocess conversation history.

Keeping earlier turns cached may reduce the extra processing cost and latency associated with that reprocessing, Google says. The change also provides a structured record of when new instructions were introduced. Those points could matter for agents used in operational or customer-service workflows, where permissions may need to narrow or actions may need to be routed differently during a session.

The actual benefits remain unmeasured in the announcement. Developers will need to determine whether the approach improves performance in their own workloads, whether its instruction handling fits their applications, and whether function-tool updates cover the actions their agents require.

Products Worth Considering

Samsung 34-Inch Odyssey G5 Ultra WQHD 180Hz Curved Gaming Monitor

Samsung 34-Inch Odyssey G5 Ultra WQHD 180Hz Curved Gaming Monitor

As an affiliate, we earn on qualifying purchases.

How Interactions API Updates Work

The Interactions API links conversation turns through a previous_interaction_id. In Google’s example, the original top-level instruction stays in place while a new system_input adds a rule for a production deployment freeze. When the user requests a deployment command, the example assistant declines to provide one and suggests read-only checks instead.

Google says new system_input steps remain active alongside the original instruction. Instructions can therefore accumulate across turns, and a newer system_input takes precedence when it conflicts with an earlier one. For tools, Google’s example retains the initial tool declarations while removing a refund function and adding an escalation-ticket function. The company presents this as a way to change available function tools without replacing the original top-level list.

The new approach differs from either inserting directions as ordinary user content or changing the conversation’s top-level setup. Google says it is intended to preserve the cached history while giving updates the authority of a system instruction. The feature is currently a preview, not a statement of general availability.

“The Interactions API now allows you to send a system_input step at any turn with system instruction or tool changes.”

— Google, in its Gemini API announcement

Preview Limits and Performance Questions

Google has not said when the preview will end, whether its behavior or supported tools will change, or whether MCP server support will be added. The announcement also gives no independent performance measurements and does not quantify potential savings in cost or latency for particular workloads.

The examples show how Google intends instruction and tool updates to work, but the announcement does not report customer deployment results or detail how the API handles more complex cases involving multiple changing instructions. Developers should treat the stated cache and authority behavior as Google’s description of the preview; practical reliability and performance in specific applications remain to be tested.

Developers Can Test the Preview

Developers can try the capability through the Interactions API preview. Google’s guidance is to keep the top-level system instruction and tools list consistent across turns, then use system_input to add instructions or make supported function-tool changes. Testing can show whether the behavior and any cache-related savings suit an individual workload.

Google has not provided a timetable for changes to the preview, broader availability, or support for additional tool types. The next developments to watch are further documentation or updates from Google, along with evidence from developers using the feature in real applications.

Key Questions

Can developers change Gemini API system instructions mid-conversation?

Yes. In the Interactions API preview, developers can add a system_input step at a turn boundary. Google says it has the authority of a top-level system instruction and remains active for the rest of the session.

Do mid-conversation updates support MCP server tools?

No. Google says the preview supports updates to function tools, but not MCP server tools.

Does the update preserve earlier conversation history in the cache?

The feature is designed to preserve cached earlier turns when instructions or supported tools change. Google says changing top-level instructions or the tools list previously invalidated the cache, but it has not published independent measurements of the preview’s cost or latency effects.

How should developers apply a tool update?

Google recommends keeping the top-level tools list unchanged and using added_tools and removed_tools within system_input to change which function tools the model can call.

When will the feature leave preview?

Google has not announced a date for the preview to end or for broader availability.

Primary source: Google AI · via ThorstenMeyerAI.com

You May Also Like

14 Wireless Gaming Mice Ranked By Play Style In 2027

A buying guide compares 14 wireless gaming mouse listings by controls, shape, battery and connectivity, while flagging duplicate color variants and conflicting specs.

We Tried Weight-Space Programming At Home: Claude Edited A Local Model, GPT-6 Astra Checked The Work, And The Legal Score Stayed At Zero

A home experiment raised a local model’s completed Lexassay answers from 4 of 10 to 10 of 10, but its legal score remained zero.

The Microsoft 365 Outage Has Entered Day Two: Here’s What’s Next

Microsoft says an Exchange Online patch is stable where applied and is expanding region by region. The Microsoft 365 outage remains unresolved.

10 Best Studio Monitor Headphones In 2027 For AI Listening And Production

A source-based guide compares 10 studio headphones for mixing, tracking, comfort and repairability. The 2027 picks are not independently verified.