watch
Monitor a window or screen for visual changes, returning the updated screenshot once a change is detected. Specify window title or process name to target.
Instructions
Poll a window until its visual content changes, then return the changed screenshot. Requires window_title or process_name — frontmost capture is not supported for watch mode. Screen mode uses 'screen' allowlist sentinel.
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": "watch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Capture mode: 'window' (default) or 'screen'. Screen mode requires '__screen__' in the allowlist. | window |
| process_name | No | Process name to watch (e.g. 'chrome'). More stable than window titles. Either window_title or process_name is required. | |
| window_title | No | Title of the window to watch. Either window_title or process_name is required. | |
| timeout_seconds | No | Maximum time to wait for a change in seconds (1–300, default 30). Returns last frame if no change detected. | |
| poll_interval_ms | No | How often to poll for changes in milliseconds (100–60000, default 1000). |