I’m experiencing a reproducible issue with the Gemini Computer Use API using gemini-3.8-flash and the JavaScript SDK.
Environment
-
Windows
-
Node.js 24.21.0
-
@google/genai 2.25.0
-
Playwright 1.63.0
-
Endpoint:
/v1beta/interactions -
Tool:
computer_use, environmentbrowser -
Prompt-injection detection enabled
Reproduction
-
Create a local HTML page with one empty Name input.
-
Send Gemini a screenshot and ask it to click the input and type the synthetic name “Taylor”.
-
The initial API request succeeds with HTTP 200 and returns a
clickaction. -
Execute the click through Playwright and capture an updated PNG screenshot.
-
Continue the interaction using the exact returned
previous_interaction_id, matchingfunction_resultcall ID/name, execution-result text, and updated PNG. -
The continuation fails with HTTP 400.
Error
Request blocked due to safety violations (harmful content). Please modify your input and retry.
The issue also reproduces in a standalone implementation that does not use our application’s orchestration code.
There are no real websites, credentials, personal details, account logins, or application submissions involved.
Safety settings were not weakened or disabled, and no retries were attempted after the explicit rejection.
Questions
-
Is this a known issue with Computer Use continuations on
gemini-3.8-flash? -
Is there an undocumented restriction on
function_resultscreenshot content or the continuation format? -
Can an account-level or model-level policy cause this rejection despite a successful initial Computer Use request?
-
Is there a recommended supported workaround that preserves safety protections?
I have a minimal reproduction script, sanitized request/response evidence, screenshots, and interaction identifiers available privately for debugging.
Documentation followed: