Skip to content

Commit 0aa6659

Browse files
author
Natallia Harshunova
committed
Update docs
1 parent 0bc3831 commit 0aa6659

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/tool-reference.md

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

280280
- **args** (array) _(optional)_: An optional list of arguments to pass to the function.
281281
- **function** (string) **(required)**: A JavaScript function declaration to be executed by the tool in the currently selected page.
282-
Example without arguments: `() => {
282+
Example without arguments: `() => {
283283
return document.title
284284
}` or `async () => {
285285
return await fetch("example.com")
286286
}`.
287-
Example with arguments: `(el) => {
287+
Example with arguments: `(el) => {
288288
return el.innerText;
289289
}`
290290

291+
291292
---
292293

293294
### `get_console_message`

0 commit comments

Comments
 (0)