tmux_run_shell
Run a shell command inside tmux via run-shell. Supports background execution and returns the exit code along with any output.
Instructions
Run a shell command from tmux via run-shell.
background=True (-b) runs it without waiting. Note: tmux surfaces the
command's stdout in a message/copy buffer rather than returning it here,
so output is usually empty — to capture a command's output prefer
tmux_run. Returns {"output", "exit_code"}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "tmux_run_shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| background | No | ||
| target_pane | No | ||
| target | No |