You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
find_text: on-screen OCR with Windows.Media.Ocr, plus redaction suggestions #117
New find_text { input | target, query? } tool that runs OCR with the OCR engine built into Windows (Windows.Media.Ocr, no extra install) and returns words/lines with bounding boxes. With query (string or regex), it returns only matches. For agents that need to locate UI text, assert what's on screen, or find secrets to redact.
Why
The threat model says "Redaction is declared, not detected": redact_region depends on someone having found the secret first. find_text { query: "sk-|ghp_|password" } -> rectangles -> redact_region closes that loop, with the human still reviewing.
Windows ships the engine, which fits the project's Windows-first, no-extra-dependencies approach.
Approach
PowerShell/WinRT shim like the existing monitors.ts / windows.ts pattern: load the image as SoftwareBitmap, OcrEngine.TryCreateFromUserProfileLanguages(), return JSON lines/words with rects.
Video inputs: OCR at given timestamps (reuse sample_frames).
find_text on a screenshot of known text returns correct boxes. A regex query finds a fake token in a recording and its rectangles feed redact_region directly. Docs explain this is best-effort detection, not a guarantee.
Activity
feat: add find_text, on-screen OCR with Windows.Media.Ocr (#117) (#145)