screenshot_to_disk
Capture web page screenshots and save them to disk, returning a file path to reduce token usage by thousands compared to base64 output.
Instructions
Takes a screenshot, saves it to disk, and returns the file path. Saves ~3000-5000 tokens per screenshot compared to returning base64. Read the file with read_file if you need to inspect it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "screenshot_to_disk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Screenshot format. | png |
| quality | No | JPEG quality (ignored for PNG). | |
| fullPage | No | If true, capture the full scrollable page. | |
| directory | No | Output directory override. Defaults to config screenshotDir (system temp). |