MCPAPI Reference

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

move_window

Change tmux state; no client-supplied executable input. Moves a window to another session, optionally at an index.

All Go tools · JSON · Source

Arguments

index optional · null | integer
a destination window index; omit for tmux's choice
session_id required · string
the destination session id, such as $1
window_id required · string
the window id, such as @1

Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

Input schema
{
"additionalProperties": false,
"properties": {
"index": {
"description": "a destination window index; omit for tmux's choice",
"type": [
"null",
"integer"
]
},
"session_id": {
"description": "the destination session id, such as $1",
"type": "string"
},
"window_id": {
"description": "the window id, such as @1",
"type": "string"
}
},
"required": [
"window_id",
"session_id"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"index": {
"type": "integer"
},
"session": {
"type": "string"
},
"windowId": {
"type": "string"
}
},
"required": [
"windowId",
"session",
"index"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"openWorldHint": true,
"title": "Move a window"
}
Esc

Type to search.