Google has expanded the Managed Agents capability in its Gemini API, adding background execution, remote MCP server connections, custom function calling and network credential refresh.
The updates let developers run long-running agent tasks asynchronously rather than holding open an HTTP connection, with the API returning an interaction ID that can be polled or streamed later. Agents can now also connect directly to remote MCP servers to reach private databases or internal APIs from inside a secure sandbox, alongside built-in tools such as code execution and Google Search.
Custom function calling has been added so client-side business logic can run alongside server-side sandbox tools, with the API pausing interactions that require local execution. A network credential refresh feature allows developers to rotate expiring access tokens or API keys mid-session without losing the sandbox's existing filesystem state, installed packages or cloned repositories.
The changes were detailed by Philipp Schmid and Mariano Cocirio of Google DeepMind, who framed the release as a step towards agents that can work unattended on real infrastructure without tying up a live connection.
