Skip to main content

Module zoom_ops

Module zoom_ops 

Source
Expand description

zoom.get, zoom.check, zoom.set, zoom.fit, zoom.reset and zoom.undo: an agent zooms the panes of another machine as it zooms its own (docs/specs/SPEC_MUXAPI_ZOOM_2026_11_24.md §8.2). Each runs the code of the local Zoom action, with the remote agent (slug@machine, from the verified key) as the name the notice shows and the write limit counts, so every rule a local call meets is met here too.

The caller has no pane here, so there is no “own tab”: a get answers for the window the person used last and the tab it is showing, and names both (window.id, tab.id). Every other call must carry that window and tab; one that does not is refused, and so is one whose tab is no longer showing, so a write never lands on whatever the person has moved to since.

Structs§

Showing 🔒
What the person is looking at: the window used last, the tab it shows, and a pane of that tab (not a browser pane), which routes a call to that window.

Constants§

REMOTE_WRITES_PER_MINUTE 🔒
The most writes one remote caller makes in a minute (the local limit is higher: spec §8.1).

Functions§

body_of 🔒
The arguments the local action takes: the call’s params without the window and tab it is addressed by.
check 🔒
check_target 🔒
A call other than get must name the window and tab a get gave, and they must still be the ones showing.
fit 🔒
get 🔒
name_window 🔒
Adds the window’s id to a get answer. The window’s own zoom (window.chrome) stays; the id goes beside it, as the tab’s is on tab.
reset 🔒
run 🔒
set 🔒
showing 🔒
undo 🔒
value_of 🔒