[Bug] Interactions API rejects built-in tools when response_mime_type is application/json (Regression Oct 28)

Error:

{
  "error": {
    "message": "Tool use with a response mime type: 'application/json' is unsupported",
    "code": "invalid_request"
  }
}

Description

My application uses the Gemini Interactions API for business verification (KYC/KYB). The request combines a system instruction, a company-verification prompt, built-in research tools, and a JSON Schema via response_format.

This configuration worked on October 27, 2026, but began returning the error above on October 28, 2026.

Tests performed

  1. JSON structured output with no tools: SUCCESS.

  2. JSON structured output with google_search only: FAILURE.

  3. JSON structured output with url_context only: FAILURE.

  4. Original configuration with both tools: FAILURE.

  5. Removing url_context from the original configuration did not resolve the issue.

The schema works when tools are omitted. Both built-in tools independently trigger the error when JSON structured output is enabled.

Expected behavior

The API should accept structured JSON output combined with built-in tools, as described in the Gemini API documentation for structured outputs with tools.

Documentation: https://ai.google.dev/gemini-api/docs/structured-output

Actual behavior

The API returns HTTP invalid_request with the message:

Tool use with a response mime type: 'application/json' is unsupported

Impact

This prevents my production workflow from performing live company research while returning schema-constrained JSON. Removing the tools would prevent reliable live verification of company identity, activities, and supporting evidence.

Request

Could the team investigate whether a backend change, regression, or model-specific restriction was introduced on October 28, 2026? Please clarify whether this combination remains supported for gemini-3-flash-preview on the Interactions API.

Hello @Mykhaylo_Terletskyy,

Please confirm whether your failing request sets background: true (background=True in the Python SDK).