tmux_respawn_pane
Restart a command in an existing tmux pane to retry a crashed process or supervise a service. Optionally force-restart a running pane with the kill flag.
Instructions
Restart the command in a pane (respawn-pane), reusing it in place.
Useful for retrying a crashed command or supervising a service without
recreating the window layout. By default tmux only respawns a pane whose
command has already exited; set kill=True (-k) to force-restart one that
is still running. command is the shell command to run (defaults to the
pane's original command); start_directory sets its cwd (-c). env
(-e KEY=VAL, tmux 3.0+) injects environment variables; ignored with a
note on older tmux.
Returns {"respawned": True, "pane": target_pane}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_pane | Yes | ||
| command | No | ||
| kill | No | ||
| start_directory | No | ||
| env | No | ||
| target | No |