We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52959c1 commit 37d81b7Copy full SHA for 37d81b7
templates/typescript/gemini-cua/index.ts
@@ -32,9 +32,15 @@ if (!GOOGLE_API_KEY) {
32
async function runStagehandTask(invocationId?: string): Promise<SearchQueryOutput> {
33
// Executes a Computer Use Agent (CUA) task using Gemini 2.5 and Stagehand
34
35
- const browserOptions = invocationId
36
- ? { invocation_id: invocationId, stealth: true }
37
- : { stealth: true };
+ const browserOptions = {
+ stealth: true,
+ // viewport: {
38
+ // width: 1440,
39
+ // height: 900,
40
+ // refresh_rate: 25
41
+ // },
42
+ ...(invocationId && { invocation_id: invocationId })
43
+ };
44
45
const kernelBrowser = await kernel.browsers.create(browserOptions);
46
0 commit comments