dock_window
Snap a window to a screen corner at a fixed size and pin it always-on-top to keep applications like Claude CLI visible while using other full-screen apps.
Instructions
Purpose: Snap a window to a screen corner at a fixed small size and pin it always-on-top — primarily to keep Claude CLI visible while operating other apps full-screen. Details: Accepts corner ('bottom-right' default), width/height (480×360 default, clamped to monitor work area), pin (true default = always-on-top), margin (8px default gap from screen edges, avoids taskbar overlap), and monitorId (see get_screen_info for IDs). Minimized windows are automatically restored before docking. Prefer: Use pin_window alone when you only need always-on-top without moving or resizing. Use dock_window when you need corner placement + resize + pin in one step. Caveats: Overrides any existing Win+Arrow snap arrangement. Call unpin_window explicitly to release always-on-top when the docked window is no longer needed in front.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Partial window title to dock (case-insensitive). Matches the first visible window containing this text. Example: 'Claude Code', 'メモ帳'. | |
| corner | No | Screen corner to snap the window to. Default 'bottom-right'. | bottom-right |
| width | No | Window width in pixels after docking. Default 480. | |
| height | No | Window height in pixels after docking. Default 360. | |
| pin | No | If true, set always-on-top so the docked window stays visible on top of other windows. Use unpin_window to remove the topmost flag later. Default true. | |
| monitorId | No | Monitor to dock on (from get_screen_info). Omit for primary monitor. | |
| margin | No | Pixel padding between the window and the screen edge. Default 8. |