playwright_screenshot
Capture a screenshot of the current page or a specific element, with optional full-page capture. Useful for visual debugging and analysis.
Instructions
Take a screenshot of the current page or a specific element
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": {
"name": "<name>"
},
"name": "playwright_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the screenshot resource (will be used in the URI) | |
| selector | No | Optional CSS selector for element to screenshot | |
| fullPage | No | Store screenshot of the entire page (default: false) |