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§
- Capture
Mask Report Result - Capture
Rect - A rectangle in the window’s viewport, in CSS pixels.
- Command
Capture Mask Report Data - Data for
capture.mask.report. - Entry 🔒
- Window
Capture Mask - 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.