You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: browserbase/src/playwright.ts
+19-24
Original file line number
Diff line number
Diff line change
@@ -268,23 +268,18 @@ const TOOLS: Tool[] = [
268
268
},
269
269
},
270
270
{
271
-
name: "browserbase_screenshot",
271
+
name: "browserbase_take_screenshot",
272
272
description:
273
-
"Takes a screenshot of the current page. Use this tool to learn where you are on the page when controlling the browser with Stagehand. Only use this tool when the other tools are not sufficient to get the information you need.",
273
+
"Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.",
274
274
inputSchema: {
275
275
type: "object",
276
276
properties: {
277
-
name: {
278
-
type: "string",
279
-
description:
280
-
"Name to save the screenshot under (optional, defaults to timestamp)",
281
-
},
282
277
sessionId: {
283
278
type: "string",
284
279
description: "Target session ID (optional, defaults to 'default')",
285
280
},
286
281
},
287
-
required: [],// name is optional
282
+
required: [],// No required args
288
283
},
289
284
},
290
285
{
@@ -306,23 +301,23 @@ const TOOLS: Tool[] = [
306
301
},
307
302
},
308
303
{
309
-
name: "browserbase_fill",
304
+
name: "browserbase_type",
310
305
description:
311
-
"Fill out an input field with the specified text. Does NOT press Enter.",
306
+
"Type text into editable element specified by a selector. Does NOT press Enter by default.",
312
307
inputSchema: {
313
308
type: "object",
314
309
properties: {
315
310
selector: {
316
311
type: "string",
317
312
description: "CSS or Playwright selector for input field",
318
313
},
319
-
value: {type: "string",description: "Value to fill"},
314
+
text: {type: "string",description: "Text to type"},
320
315
sessionId: {
321
316
type: "string",
322
317
description: "Target session ID (optional, defaults to 'default')",
323
318
},
324
319
},
325
-
required: ["selector","value"],
320
+
required: ["selector","text"],
326
321
},
327
322
},
328
323
{
@@ -610,8 +605,8 @@ async function handleToolCall(
0 commit comments