> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alterhq.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Active App Context

> Capture active window content and OCR text for Computer Use workflows

Use this tool to read what is currently visible in an app or browser window before taking action.

> [!TIP]
>
> The [**Computer Use**](https://docs.alterhq.com/apps-tools/computer-use.md) agent prefers **`read_screen_ax`** (AX-only, no screenshot) from the [agent tools reference](https://docs.alterhq.com/apps-tools/computer-use-agent-tools.md). Use Get Active App Context for manual primitive chains or when you need OCR from screenshots outside the task agent.

## 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 from `list_windows`.

## Good pairing

* [Perform](https://docs.alterhq.com/apps-tools/computer-use-perform.md)
* [Scroll](https://docs.alterhq.com/apps-tools/computer-use-scroll.md)
* [Wait](https://docs.alterhq.com/apps-tools/computer-use-wait.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.