browser_evaluate
Execute JavaScript expressions on web pages or specific elements to interact with or extract data, enabling dynamic browser automation through Playwright MCP server.
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 |