Tmux Send Command
tmux_send_commandExecutes commands in a target tmux pane with automatic Enter and optional regex waiting, helping detect shell or program prompts so you know when to proceed or send input.
Instructions
Execute commands with automatic Enter.
CRITICAL: Use wait_for_pattern or analyze the last line of output:
Shell prompt (pattern like r'user@host.*$') → command completed, safe to proceed
Program prompt ((gdb) >>> mysql>) → interactive mode, send input as needed
No prompt / progress indicators → still executing, wait or check with tmux_capture_pane
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": {
"commands": "<commands>",
"target_pane": "<target_pane>"
},
"name": "tmux_send_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delay | No | Timeout in seconds (max 600). | |
| commands | Yes | Commands to send | |
| target_pane | Yes | ||
| wait_for_pattern | No | Regex to wait for in the terminal outputs. Polls until match or timeout. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |