Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/tool-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 declaration to be executed by the tool in the currently selected page.
Example without arguments: `() => {
return document.title
}` or `async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/tools/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 declaration to be executed by the tool in the currently selected page.
Example without arguments: \`() => {
return document.title
}\` or \`async () => {
Expand Down