diff --git a/docs/tool-reference.md b/docs/tool-reference.md index 1836c924..0a6b08b6 100644 --- a/docs/tool-reference.md +++ b/docs/tool-reference.md @@ -284,7 +284,7 @@ so returned values have to JSON-serializable. **Parameters:** - **args** (array) _(optional)_: An optional list of arguments to pass to the function. -- **function** (string) **(required)**: A JavaScript function to run in the currently selected page. +- **function** (string) **(required)**: A JavaScript function to run in the currently selected page. Just define the function and let the tool do the execution. Example without arguments: `() => { return document.title }` or `async () => { diff --git a/src/tools/script.ts b/src/tools/script.ts index be46de55..0e70526b 100644 --- a/src/tools/script.ts +++ b/src/tools/script.ts @@ -19,7 +19,7 @@ so returned values have to JSON-serializable.`, }, schema: { function: z.string().describe( - `A JavaScript function to run in the currently selected page. + `A JavaScript function to run in the currently selected page. Just define the function and let the tool do the execution. Example without arguments: \`() => { return document.title }\` or \`async () => {