Skip to content

Commit ac43a8b

Browse files
committed
description
1 parent c96b9df commit ac43a8b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

browserbase/src/tools/snapshot.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const snapshot = defineTool<typeof SnapshotInputSchema>({
4141
schema: {
4242
name: "browserbase_snapshot",
4343
description:
44-
"Capture a new accessibility snapshot of the current page state.",
44+
"Capture a new accessibility snapshot of the current page state. Use this if the page has changed to ensure subsequent actions use an up-to-date page representation.",
4545
inputSchema: SnapshotInputSchema,
4646
},
4747

@@ -467,7 +467,8 @@ const screenshot = defineTool<typeof screenshotSchema>({
467467
);
468468

469469
// Conditionally get locator only if ref and snapshot are available
470-
const locator = params.ref && pageSnapshot ? pageSnapshot.refLocator(params.ref) : null;
470+
const locator =
471+
params.ref && pageSnapshot ? pageSnapshot.refLocator(params.ref) : null;
471472

472473
// Use JSON.stringify for code generation as javascript.formatObject is not available
473474
const optionsForCode = { ...options };

0 commit comments

Comments
 (0)