screenshot
Captures the current page or a specific element, saves the image to disk, and returns the file path for later use.
Instructions
Captures a screenshot of the current page or a specific element. Saves to disk and returns the file path.
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": "<session>"
},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | The session name | |
| fullPage | No | Capture full scrollable page instead of viewport only. Ignored if selector is provided. Default: false | |
| savePath | No | Custom file path to save the PNG. If omitted, saves to a temp directory. | |
| selector | No | CSS selector for a specific element to capture. If omitted, captures the full page/viewport. |