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