playwright_evaluate
Run JavaScript code directly in the browser console with Playwright MCP Server's browser automation tool. Simplify web testing, content scraping, and dynamic interaction in real browser environments.
Instructions
Execute JavaScript in the browser console
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"script": "<script>"
},
"name": "playwright_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | JavaScript code to execute |