Element tools accept language-specific locators
Introduced 2026-10-31 · score 0.97
HOW TO USE IT
When interacting with a page element, pass its locator or snapshot ref in `target`. For example, click with `browser_click` and a JavaScript locator string.
browser_click { "target": "getByRole('button', { name: 'Submit' })" }WHY THIS HELPS
Target an element with a JavaScript, Python, Java, or C# locator when interacting with a page.
REQUIREMENTS AND LIMITATIONS
- Version: v0.0.84
- target (required): Snapshot ref or unique selector; for this call, the locator string.
- Invalid targets return an actionable error.
FIRST-PARTY EVIDENCE
- https://github.com/microsoft/playwright-mcp/releases/tag/v0.0.84
- https://github.com/microsoft/playwright-mcp/blob/v0.0.84/README.md
Check the installed version and the source before using it. Entry JSON