Skip to content

Commit 2313fda

Browse files
fix: better wording for evaluate_script (#392)
Closes #390
1 parent d8df784 commit 2313fda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/tool-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ so returned values have to JSON-serializable.
284284
**Parameters:**
285285

286286
- **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.
287+
- **function** (string) **(required)**: A JavaScript function declaration to be executed by the tool in the currently selected page.
288288
Example without arguments: `() => {
289289
return document.title
290290
}` or `async () => {

src/tools/script.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ so returned values have to JSON-serializable.`,
1919
},
2020
schema: {
2121
function: z.string().describe(
22-
`A JavaScript function to run in the currently selected page.
22+
`A JavaScript function declaration to be executed by the tool in the currently selected page.
2323
Example without arguments: \`() => {
2424
return document.title
2525
}\` or \`async () => {

0 commit comments

Comments
 (0)