page_screenshot
Capture a PNG screenshot of a webpage viewport or full page. Saves the image to session recordings and returns the file path, with optional live view integration.
Instructions
Capture a PNG screenshot of a page (viewport by default, full page with full_page=true). Saved under the session recordings dir; returns the file path. Feeds the live view when enabled.
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": {
"session_id": "<session_id>",
"page_id": "<page_id>"
},
"name": "page_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| full_page | No | Capture the whole scrollable document instead of the viewport (optional). | |
| session_id | Yes |