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 c23e3c7 commit 8f02bc0Copy full SHA for 8f02bc0
docs/tool-reference.md
@@ -281,16 +281,15 @@ so returned values have to JSON-serializable.
281
282
- **args** (array) _(optional)_: An optional list of arguments to pass to the function.
283
- **function** (string) **(required)**: A JavaScript function to run in the currently selected page.
284
-Example without arguments: `() => {
+ Example without arguments: `() => {
285
return document.title
286
}` or `async () => {
287
return await fetch("example.com")
288
}`.
289
-Example with arguments: `(el) => {
+ Example with arguments: `(el) => {
290
return el.innerText;
291
}`
292
293
-
294
---
295
296
### `list_console_messages`
0 commit comments