move_window
- move_window( destination_index?: string, destination_session?: string | null, session_id?: string | null, session_name?: string | null, socket_name?: string | null, window_id?: string | null, window_index?: string | null, )
-
Move a window to a different index or session.
Reorder windows within a session or move a window to another session.
- MCP request method
tools/callSendmove_windowas the tool name, with the arguments below.- Wraps
libtmux.Window.move_windowThe library call this tool makes:src/libtmux_mcp/tools/window_tools.py:487.
Arguments
-
destination_index? =""(string)Target window index. Default empty string (next available).
-
destination_session? =null(string | null)Target session name or ID. Default is current session.
-
session_id? =null(string | null)Source session ID.
-
session_name? =null(string | null)Source session name.
-
socket_name? =null(string | null)tmux socket name.
-
window_id? =null(string | null)Window ID (e.g. ‘@1’).
-
window_index? =null(string | null)Window index within the session.
No other arguments are accepted.
Result
Returns object
-
active_pane_id? =null(string | null)Pane id (
%N) of the window’s active pane. -
Number of panes
-
session_id? =null(string | null)Parent session ID
-
session_name? =null(string | null)Parent session name
-
window_active? =null(string | null)Active flag (‘1’ or ‘0’)
-
window_height? =null(string | null)Height in rows
-
Window ID (e.g. ‘@1’)
-
window_index? =null(string | null)Window index
-
window_layout? =null(string | null)Layout string
-
window_name? =null(string | null)Window name
-
window_width? =null(string | null)Width in columns
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalse
Capability
- Toolset
- Manage Change tmux structure or presentation.
Every Python tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.
Protocol data
Use the complete advertised contract for validation and client integration.
Input schema
{"additionalProperties": false,"properties": {"destination_index": {"default": "","description": "Target window index. Default empty string (next available).","type": "string"},"destination_session": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Target session name or ID. Default is current session."},"session_id": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Source session ID."},"session_name": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Source session name."},"socket_name": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "tmux socket name."},"window_id": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Window ID (e.g. '@1')."},"window_index": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Window index within the session."}},"type": "object"}Output schema
{"description": "Serialized tmux window.","properties": {"active_pane_id": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Pane id (``%N``) of the window's active pane."},"pane_count": {"description": "Number of panes","type": "integer"},"session_id": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Parent session ID"},"session_name": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Parent session name"},"window_active": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Active flag ('1' or '0')"},"window_height": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Height in rows"},"window_id": {"description": "Window ID (e.g. '@1')","type": "string"},"window_index": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Window index"},"window_layout": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Layout string"},"window_name": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Window name"},"window_width": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Width in columns"}},"required": ["window_id","pane_count"],"type": "object"}