get_app_state
Retrieve active window, focused widget, and screen information to determine UI focus before sending keyboard input.
Instructions
Get app-level state: active window, focused widget, screen info. Useful to understand focus before sending keyboard events.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | App pid from launch_app. Omit to target the last launched app. Required only when several apps are running and you need a specific one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |