chore: introduce browser_evaluate (#678)

Fixes https://github.com/microsoft/playwright-mcp/issues/424
This commit is contained in:
Pavel Feldman
2025-07-16 15:02:47 -07:00
committed by GitHub
parent 825a97d66e
commit 012c906500
9 changed files with 127 additions and 36 deletions

View File

@@ -598,6 +598,22 @@ X Y coordinate space, based on the provided screenshot.
</details>
<details>
<summary><b>Evaluation</b></summary>
<!-- NOTE: This has been generated via update-readme.js -->
- **browser_evaluate**
- Title: Evaluate JavaScript
- Description: Evaluate JavaScript expression on page or element
- Parameters:
- `function` (string): () => { /* code */ } or (element) => { /* code */ } when element is provided
- `element` (string, optional): Human-readable element description used to obtain permission to interact with the element
- `ref` (string, optional): Exact target element reference from the page snapshot
- Read-only: **false**
</details>
<details>
<summary><b>Resources</b></summary>