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. Move a window to another index, or into another session. With replaceExisting it takes an index that is already occupied by killing the window there, which needs the teardown toolset.

All C# tools · JSON · Source

Arguments

destination optional · string
The destination window index. Omit for the next free index, as an empty one does.

Default: "".

replaceExisting optional · boolean
Kill the window already at that index and take its place. Needs the same authority as kill_window, because that is what it does to it.

Default: false.

session optional · string | null
The destination session id or name. Omit to stay in the window's session.

Default: null.

windowId required · string
The window id to move.

Schemas

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

Input schema
{
"additionalProperties": false,
"properties": {
"destination": {
"default": "",
"description": "The destination window index. Omit for the next free index, as an empty one does.",
"type": "string"
},
"replaceExisting": {
"default": false,
"description": "Kill the window already at that index and take its place. Needs the same authority as kill_window, because that is what it does to it.",
"type": "boolean"
},
"session": {
"default": null,
"description": "The destination session id or name. Omit to stay in the window's session.",
"type": [
"string",
"null"
]
},
"windowId": {
"description": "The window id to move.",
"type": "string"
}
},
"required": [
"windowId"
],
"type": "object"
}
Output schema
{
"properties": {
"changed": {
"type": "string"
},
"paneId": {
"default": null,
"type": [
"string",
"null"
]
},
"sessionId": {
"default": null,
"type": [
"string",
"null"
]
},
"windowId": {
"default": null,
"type": [
"string",
"null"
]
}
},
"required": [
"changed"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "Move window"
}
Esc

Type to search.