browser_evaluate
Evaluate JavaScript expressions on web pages or specific elements to extract or manipulate data, enabling precise interaction and testing in automated browser workflows.
Instructions
Evaluate JavaScript expression on page or element
Input Schema
Name | Required | Description | Default |
---|---|---|---|
element | No | Human-readable element description used to obtain permission to interact with the element | |
function | Yes | () => { /* code */ } or (element) => { /* code */ } when element is provided | |
ref | No | Exact target element reference from the page snapshot |