snap_window
Positions a window into a named or numbered snap zone on its monitor, using the zone set for that screen. Returns a clear error if the zone isn't found.
Instructions
Drop one window into a zone of the snap-zone set assigned to that monitor, by number or by name. The numbers are the ones Plonk draws on the zones while a window is dragged, so 'the middle zone' of a three-zone set is 2; a name is whatever the set calls a zone ('chat'), listed per zone in get_state.zone_sets, matched ignoring case. Fails with the zones that screen does have, names included, when neither matches. Zone sets and their per-monitor assignment are in get_state; use apply_layout instead when the user describes a size rather than a zone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App name to match, e.g. 'Visual Studio Code' | |
| zone | Yes | 1-based zone number as shown on the drag overlay, or the zone's name from get_state.zone_sets | |
| title | No | Only windows whose title contains this substring | |
| screen | No | Monitor index; defaults to the one the window is on |