Skip to content

Commit ae8b5ee

Browse files
docs
1 parent 42a8431 commit ae8b5ee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/tool-reference.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,15 +287,16 @@ so returned values have to JSON-serializable.
287287

288288
- **args** (array) _(optional)_: An optional list of arguments to pass to the function.
289289
- **function** (string) **(required)**: A JavaScript function declaration to be executed by the tool in the currently selected page.
290-
Example without arguments: `() => {
290+
Example without arguments: `() => {
291291
return document.title
292292
}` or `async () => {
293293
return await fetch("example.com")
294294
}`.
295-
Example with arguments: `(el) => {
295+
Example with arguments: `(el) => {
296296
return el.innerText;
297297
}`
298298

299+
299300
---
300301

301302
### `get_console_message`
@@ -314,6 +315,7 @@ so returned values have to JSON-serializable.
314315

315316
**Parameters:**
316317

318+
- **includePreviousNavigations** (boolean) _(optional)_: Whether to include messages from previous navigations.
317319
- **pageIdx** (integer) _(optional)_: Page number to return (0-based). When omitted, returns the first page.
318320
- **pageSize** (integer) _(optional)_: Maximum number of messages to return. When omitted, returns all requests.
319321
- **types** (array) _(optional)_: Filter messages to only return messages of the specified resource types. When omitted or empty, returns all messages.

0 commit comments

Comments
 (0)