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 ae8b5ee commit b671cb1Copy full SHA for b671cb1
docs/tool-reference.md
@@ -287,16 +287,15 @@ so returned values have to JSON-serializable.
287
288
- **args** (array) _(optional)_: An optional list of arguments to pass to the function.
289
- **function** (string) **(required)**: A JavaScript function declaration to be executed by the tool in the currently selected page.
290
-Example without arguments: `() => {
+ Example without arguments: `() => {
291
return document.title
292
}` or `async () => {
293
return await fetch("example.com")
294
}`.
295
-Example with arguments: `(el) => {
+ Example with arguments: `(el) => {
296
return el.innerText;
297
}`
298
299
-
300
---
301
302
### `get_console_message`
0 commit comments