take_screenshot
Capture screenshots from Windows applications while working in WSL. Target specific monitors, windows by title or process, and receive optimized images directly or save to custom paths.
Instructions
WSLSnapIt: Smart screenshot capture for WSL. Capture monitors, windows by title/process, with direct image return and auto-compression.
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": "take_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Filename for the screenshot (default: screenshot.png). Ignored when returnDirect is true. | screenshot.png |
| monitor | No | Which monitor to capture: "all" (default), "primary", or monitor number (1, 2, etc.) | all |
| windowTitle | No | Capture a specific window by its title (partial match supported). If multiple windows match, you'll get a list to choose from. | |
| windowIndex | No | When multiple windows match the title, specify which one to capture (1 for first, 2 for second, etc.). Default: 1 | |
| processName | No | Capture a specific window by process name (e.g., "notepad.exe" or just "notepad") | |
| folder | No | Custom folder path to save the screenshot (supports both WSL and Windows paths). Ignored when returnDirect is true. | |
| returnDirect | No | If true, returns the image directly to Claude without saving to disk. Large images will be automatically resized and compressed to fit within 1MB limit. | |
| quality | No | JPEG quality (1-100). Only applies when returnDirect is true. Default: 80. Will be automatically reduced if needed. |