What it does
- Retrieves content from the active app window by default.
- Accepts optional
windowID(pid/title) to target a specific window. - Returns extracted text content.
- Adds OCR text from screenshots when useful.
Common uses
- Read page or app state before clicking.
- Extract visible content for summaries.
- Build a stable context before multi-step automation.
Input
windowID(optional): target a specific window fromlist_windows.