capture_window
Capture the frontmost app window as a screenshot with accessibility text, including off-screen content, and optionally target a specified app.
Instructions
Capture the user's frontmost app window right now (the AI client's own window is skipped). Returns screenshot + accessibility text including off-screen text. Optionally target a specific app.
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": "capture_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Optional app name or bundle id, e.g. "Safari" or "com.apple.Notes". | |
| max_chars | No | Max characters of window text to return (default 40000). | |
| include_screenshot | No | Attach the window screenshot (default true). Set false for text-only models. |