app_screenshot
Capture the application window or a specific dialog as a PNG so the agent can visually verify on-screen UI state, rendered content, and control status that accessibility trees omit.
Instructions
Capture Altium, or one dialog, to a PNG.
THE AGENT COULD NOT SEE THE UI. ui/ocr.py has been able to capture and read a window since it was written and none of it was exposed, so every judgement about what was on screen came from an accessible tree that omits anything drawn rather than placed. A picture settles what a tree cannot: which page is in front, whether a control is greyed, what a rendered dialog actually says.
Args: path: where to write the PNG. Defaults to the workspace directory, so the file is somewhere findable. dialog_title: capture that dialog rather than the main window.
Returns:
{"ok": true, "path": ..., "hwnd": ...}. Read the file to
look at it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| dialog_title | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||