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
-
JSON structured output with no tools: SUCCESS.
-
JSON structured output with
google_searchonly: FAILURE. -
JSON structured output with
url_contextonly: FAILURE. -
Original configuration with both tools: FAILURE.
-
Removing
url_contextfrom 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.