screenctx

command
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Command screenctx captures screen context by combining CGWindowListCopyWindowInfo with Vision OCR to produce an XML map of on-screen text attributed to the owning application.

Usage:

screenctx                    # capture entire screen (needs screen recording permission)
screenctx <screenshot>       # read from file
screenctx -                  # read from stdin

Output is XML:

<screen width="W" height="H">
  <app name="Terminal" pid="1234" bounds="x,y,w,h">
    <text confidence="0.98" bounds="x,y,w,h">Hello</text>
  </app>
</screen>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL