tmux_find_window
Locate tmux windows by matching pattern against window name, title, or current command, with optional session scoping.
Instructions
Find windows whose name, title, or current command matches pattern.
pattern is matched case-insensitively as a substring. Scope to a
session, or search the whole server (default). Returns the matching
window records {"matches": [...]}.
(tmux's own find-window is interactive — it opens a chooser in an
attached client — so this performs a non-interactive search over
list-windows instead, which is what an agent actually wants.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| session | No | ||
| target | No |