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

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

All Java tools · JSON · Source

Arguments

index optional · integer
A destination window index; omit for tmux's choice. Defaults to -1.

Default: -1.

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": {
"default": -1,
"description": "A destination window index; omit for tmux's choice. Defaults to -1.",
"type": "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_id": {
"type": "string"
},
"window_id": {
"type": "string"
}
},
"required": [
"window_id",
"session_id",
"index"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "Move a window"
}
Esc

Type to search.