get-page-screenshot
Capture a PNG screenshot of a browser page's viewport to visually verify layout, rendering, or page state during Playwright automation.
Instructions
Capture a PNG screenshot of the tab viewport.
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": {
"pageId": "<pageId>"
},
"name": "get-page-screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | ||
| sessionId | No | Browser session ID. Defaults to 'default'. |