screenshot
Captures a Cascadeur window or UI element as an image and converts image pixels to window coordinates for accurate ui_click targeting.
Instructions
Capture a Cascadeur window (or one element by ref) as an image. window_units_per_pixel converts image pixels to the window coordinates used by ui_click x/y.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from the latest ui_tree or dialogs result. | |
| format | No | ||
| window | No | Window index or title substring (default: focused/main window). | |
| restore | No | Un-minimize the window first (a minimized window renders nothing). | |
| max_width | No | Downscale to this width (default 1280). |