Create window¶
create_window¶
create_windowCreate a new window in a tmux session.
- Returns:
Use when you need a new terminal workspace within an existing session.
Side effects: Creates a new window. Attaches to it if attach is true.
Example:
{
"tool": "create_window",
"arguments": {
"session_name": "dev",
"window_name": "logs"
}
}
Response:
{
"window_id": "@2",
"window_name": "logs",
"window_index": "3",
"session_id": "$0",
"session_name": "dev",
"pane_count": 1,
"window_layout": "b25f,80x24,0,0,5",
"window_active": "1",
"window_width": "80",
"window_height": "24"
}
Parameters
Parameter |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
no |
— |
Session name to look up. |
|
|
no |
— |
Session ID (e.g. ‘$1’) to look up. |
|
|
no |
— |
Name for the new window. |
|
|
no |
— |
Working directory for the new window. |
|
|
no |
|
Whether to make the new window active. |
|
|
|
no |
— |
Window placement direction. One of: |
|
no |
— |
tmux socket name. Defaults to LIBTMUX_SOCKET env var. |