viewport_screenshot
Take a screenshot of the active viewport, save it as a PNG, and provide the absolute path for Claude Code to access.
Instructions
Capture the active viewport to a PNG file. Returns the absolute filesystem path so Claude Code can read the image.
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": "viewport_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| show_ui | No | Include editor UI in capture (default false) | |
| filename | No | Output filename (auto-generated if omitted) | |
| resolution | No | Screenshot resolution |