tmux_command
Execute arbitrary tmux commands by passing arguments as a list. Returns raw output including stdout, stderr, and exit code. Supports local and remote targets.
Instructions
Run an arbitrary tmux command and return its raw result.
This is the universal escape hatch — it runs tmux <args> verbatim, so
it can do anything the target's tmux supports. Pass the subcommand and
its flags as a list, e.g. args=["new-window", "-t", "mysess", "-n",
"logs"]. Do NOT include the leading "tmux".
Returns {"stdout", "stderr", "exit_code"}. Non-zero exit codes are returned, not raised, so you can inspect failures.
target selects where tmux runs: omit (or "local") for the local
machine, a named profile from the config file, or an ad-hoc ssh
destination like "user@host".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | ||
| target | No | ||
| timeout | No |