We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36e64d5 commit 2fb5c28Copy full SHA for 2fb5c28
1 file changed
docs/tool-reference.md
@@ -285,15 +285,16 @@ so returned values have to JSON-serializable.
285
286
- **args** (array) _(optional)_: An optional list of arguments to pass to the function.
287
- **function** (string) **(required)**: A JavaScript function to run in the currently selected page.
288
- Example without arguments: `() => {
+Example without arguments: `() => {
289
return document.title
290
}` or `async () => {
291
return await fetch("example.com")
292
}`.
293
- Example with arguments: `(el) => {
+Example with arguments: `(el) => {
294
return el.innerText;
295
}`
296
297
+
298
---
299
300
### `list_console_messages`
0 commit comments