We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48c1e41 commit 6d2a934Copy full SHA for 6d2a934
docs/tool-reference.md
@@ -277,16 +277,15 @@ so returned values have to JSON-serializable.
277
278
- **args** (array) _(optional)_: An optional list of arguments to pass to the function.
279
- **function** (string) **(required)**: A JavaScript function to run in the currently selected page.
280
-Example without arguments: `() => {
+ Example without arguments: `() => {
281
return document.title
282
}` or `async () => {
283
return await fetch("example.com")
284
}`.
285
-Example with arguments: `(el) => {
+ Example with arguments: `(el) => {
286
return el.innerText;
287
}`
288
289
-
290
---
291
292
### `list_console_messages`
0 commit comments