Skip to content

Commit e1fd1cc

Browse files
committed
chore: improve doc
1 parent c9b4f71 commit e1fd1cc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/tool-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148

149149
**Parameters:**
150150

151-
- **handleBeforeUnload** (enum: "accept", "decline") _(optional)_: Whether to auto accept, decline or ignore potential before unload dialogs triggered by this navigation.
151+
- **handleBeforeUnload** (enum: "accept", "decline") _(optional)_: Whether to auto accept or beforeunload dialogs triggered by this navigation. Default is accept.
152152
- **ignoreCache** (boolean) _(optional)_: Whether to ignore cache on reload.
153153
- **timeout** (integer) _(optional)_: Maximum wait time in milliseconds. If set to 0, the default timeout will be used.
154154
- **type** (enum: "url", "back", "forward", "reload") _(optional)_: Navigate the page by URL, back or forward in history, or reload.

src/tools/pages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export const navigatePage = defineTool({
125125
.enum(['accept', 'decline'])
126126
.optional()
127127
.describe(
128-
'Whether to auto accept, decline or ignore potential before unload dialogs triggered by this navigation.',
128+
'Whether to auto accept or beforeunload dialogs triggered by this navigation. Default is accept.',
129129
),
130130
...timeoutSchema,
131131
},

0 commit comments

Comments
 (0)