termmux
v0.1.0Drive local tmux sessions, windows and panes: list, create, send keys, capture output.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_sessions
List all tmux sessions
create_session
Create a new tmux session
| Parameter | Type | Description |
|---|---|---|
session_name * | string | The name for the new tmux session |
start_directory | string | Optional working directory the session starts in |
window_name | string | Optional name for the session's first window |
kill_session
Kill a tmux session by name
| Parameter | Type | Description |
|---|---|---|
session_name * | string | The name of the tmux session to kill |
list_windows
List the windows of a tmux session
| Parameter | Type | Description |
|---|---|---|
session_name * | string | The name of the tmux session whose windows to list |
create_window
Create a new window in a tmux session
| Parameter | Type | Description |
|---|---|---|
session_name * | string | The name of the tmux session to create the window in |
window_name * | string | The name for the new window |
start_directory | string | Optional working directory the window starts in |
kill_window
Kill a window in a tmux session
| Parameter | Type | Description |
|---|---|---|
session_name * | string | The name of the tmux session containing the window |
window_name * | string | The name of the window to kill |
list_panes
List the panes of a tmux session, optionally of one window
| Parameter | Type | Description |
|---|---|---|
session_name * | string | The name of the tmux session whose panes to list |
window_name | string | Optional window name to limit the listing to one window |
send_keys
Send keys (a command line or key names) to a tmux pane
| Parameter | Type | Description |
|---|---|---|
keys * | string | The command line or key names to send to the pane |
session_name * | string | The name of the tmux session containing the target pane |
pane_target | string | Optional pane target (window.pane) to send the keys to |
press_enter | boolean | Whether to press Enter after sending the keys |
capture_pane
Capture the visible contents of a tmux pane as text
| Parameter | Type | Description |
|---|---|---|
session_name * | string | The name of the tmux session containing the pane |
lines | number | Optional number of lines of pane history to capture |
pane_target | string | Optional pane target (window.pane) to capture |
rename_session
Rename a tmux session
| Parameter | Type | Description |
|---|---|---|
new_name * | string | The new name for the session |
session_name * | string | The current name of the tmux session |
select_window
Select (activate) a window in a tmux session
| Parameter | Type | Description |
|---|---|---|
session_name * | string | The name of the tmux session containing the window |
window_name * | string | The name of the window to select |
get_session_info
Get details of one tmux session: window count, creation time and attached state
| Parameter | Type | Description |
|---|---|---|
session_name * | string | The name of the tmux session to describe |