save_screenshot
Capture a screenshot and save it to a local PNG/JPEG file; optionally clip the image to a specific CSS selector element.
Instructions
Capture a screenshot and write it to a local file path (PNG/JPEG); optional selector clips to 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": {
"path": "<path>"
},
"name": "save_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative file path to write | |
| format | No | ||
| quality | No | ||
| selector | No | Optional CSS selector — capture only that element's bounding box | |
| targetId | No | ||
| processId | No | Target process ID. Omit if only one app is running. |