Skip to main content

Module capture_mask

Module capture_mask 

Source
Expand description

The private and secret rectangles of each AgentMux window, read at the instant of a UI window capture (docs/specs/SPEC_DEEP_LINKS_ONE_FRAMEWORK_2026_11_20.md §7, G5).

The capturing agent’s MCP asks twice through POST /api/v1/ui/capture_mask: begin just before it takes the frame, end just after. Each ask publishes capture:mask to every window, and each window answers capture.mask.report with its rectangles, its size and scale, and (for end) whether anything changed since begin. The answer is accepted only from the AgentMux window (operator_only), so an agent can’t report a mask.

Structs§

CaptureMaskReportResult
CaptureRect
A rectangle in the window’s viewport, in CSS pixels.
CommandCaptureMaskReportData
Data for capture.mask.report.
Entry 🔒
WindowCaptureMask
One window’s answer.

Constants§

COMMAND_CAPTURE_MASK_REPORT
MAX_RECTS 🔒
The most rectangles one window may report.
WAIT_FOR
How long an ask waits for the windows’ answers.

Statics§

ENTRIES 🔒

Functions§

ask
Ask every window for its mask and gather the answers that come within wait.
entries 🔒
gather 🔒
key 🔒
register
capture.mask.report, accepted only from the proven AgentMux window (operator_only), never from an agent.
report
A window’s answer to the ask capture_id, phase.
window_count 🔒
How many windows srv knows, so an ask stops waiting once each has answered.