Move window¶
move_window¶
move_windowMove a window to a different index or session.
- Returns:
Use when you need to reorder windows within a session or move a window to a different session entirely.
Side effects: Changes the window’s index or parent session.
Example:
{
"tool": "move_window",
"arguments": {
"window_id": "@1",
"destination_index": "1"
}
}
Response:
{
"window_id": "@1",
"window_name": "server",
"window_index": "1",
"session_id": "$0",
"session_name": "dev",
"pane_count": 1,
"window_layout": "b25f,80x24,0,0,2",
"window_active": "0",
"window_width": "80",
"window_height": "24"
}
Parameters
Parameter |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
no |
— |
Window ID (e.g. ‘@1’). |
|
|
no |
— |
Window index within the session. |
|
|
no |
— |
Source session name. |
|
|
no |
— |
Source session ID. |
|
|
no |
|
Target window index. Default empty string (next available). |
|
|
no |
— |
Target session name or ID. Default is current session. |
|
|
no |
— |
tmux socket name. |