Evaluate JavaScript
page_evaluateRun a bounded JavaScript function on the current page to modify or retrieve data, returning a JSON-safe result.
Instructions
Run a bounded JavaScript function body in the current page and return a JSON-safe result. This can mutate the page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | JSON arguments passed to the JavaScript function body | |
| script | Yes | JavaScript function body to run in the current page. Use return to provide a JSON-serializable result. | |
| max_chars | No | Maximum serialized JSON characters returned in result |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||