execute-command
Run commands in a tmux pane, retrieve results, and handle interactive applications using rawMode. Avoid multi-line constructs for non-rawMode executions. Ideal for terminal session control and monitoring.
Instructions
Execute a command in a tmux pane and get results. For interactive applications (REPLs, editors), use rawMode=true
. IMPORTANT: When rawMode=false
(default), avoid heredoc syntax (cat << EOF) and other multi-line constructs as they conflict with command wrapping. For file writing, prefer: printf 'content\n' > file, echo statements, or write to temp files instead
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | Yes | Command to execute | |
paneId | Yes | ID of the tmux pane | |
rawMode | No | Execute command without wrapper markers for REPL/interactive compatibility. Disables get-command-result status tracking. Use capture-pane to monitor interactive apps. |