{
  "name": "move_window",
  "wireName": "move_window",
  "source": {
    "repo": "libtmux/libtmux-ts",
    "revision": "b3f338c1a21e614ebf0dd6d55aa36a60db816618",
    "extractedRevision": "b3f338c1a21e614ebf0dd6d55aa36a60db816618",
    "file": "packages/mcp/src/tools/layout.ts",
    "line": 268
  },
  "description": "Change tmux state; no client-supplied executable input. Move a window to another index, or into another session.",
  "schemaStatus": "runtime",
  "inputSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {
      "index": {
        "description": "Destination index. Defaults to the next free one.",
        "maximum": 9007199254740991,
        "minimum": 0,
        "type": "integer"
      },
      "session": {
        "description": "Destination session id or name.",
        "type": "string"
      },
      "sourceIndex": {
        "description": "Source window index. Required when the session has several placements of the id.",
        "maximum": 9007199254740991,
        "minimum": 0,
        "type": "integer"
      },
      "sourceSession": {
        "description": "Source session id or name. Required when the id has several placements.",
        "type": "string"
      },
      "windowId": {
        "description": "Stable window id, e.g. @1.",
        "pattern": "^@\\d+$",
        "type": "string"
      }
    },
    "required": [
      "windowId"
    ],
    "type": "object"
  },
  "outputSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "window": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "Stable window id, e.g. @1.",
            "pattern": "^@\\d+$",
            "type": "string"
          },
          "layout": {
            "description": "tmux's observed saved layout, including any resizing or pruning; feed it back only when metadataComplete is true.",
            "type": "string"
          },
          "metadataComplete": {
            "description": "Whether every projected metadata string is complete.",
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "omittedMetadataBytes": {
            "description": "UTF-8 bytes omitted from projected metadata strings.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "omittedPlacements": {
            "description": "Later placements omitted.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "panes": {
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "placements": {
            "description": "Retained sessions and indexes where this window is linked.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "active": {
                  "description": "Whether this placement is current in its session.",
                  "type": "boolean"
                },
                "index": {
                  "description": "The window index in this session.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "sessionId": {
                  "description": "Stable session id, e.g. $1.",
                  "pattern": "^\\$\\d+$",
                  "type": "string"
                },
                "sessionName": {
                  "type": "string"
                }
              },
              "required": [
                "index",
                "sessionId",
                "sessionName",
                "active"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "placementsComplete": {
            "description": "Whether placements contains every placement.",
            "type": "boolean"
          },
          "zoomed": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "layout",
          "metadataComplete",
          "name",
          "omittedMetadataBytes",
          "panes",
          "omittedPlacements",
          "placements",
          "placementsComplete",
          "zoomed"
        ],
        "type": "object"
      }
    },
    "required": [
      "window"
    ],
    "type": "object"
  },
  "annotations": {
    "destructiveHint": true,
    "idempotentHint": false,
    "openWorldHint": true,
    "readOnlyHint": false
  },
  "meta": {
    "com.git-pull.libtmux-mcp/capability": {
      "amplifiesFutureInput": false,
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Change tmux state; no client-supplied executable input. Move a window to another index, or into another session.",
      "inputLiteralization": {},
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "index": {
            "description": "Destination index. Defaults to the next free one.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "session": {
            "description": "Destination session id or name.",
            "type": "string"
          },
          "sourceIndex": {
            "description": "Source window index. Required when the session has several placements of the id.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "sourceSession": {
            "description": "Source session id or name. Required when the id has several placements.",
            "type": "string"
          },
          "windowId": {
            "description": "Stable window id, e.g. @1.",
            "pattern": "^@\\d+$",
            "type": "string"
          }
        },
        "required": [
          "windowId"
        ],
        "type": "object"
      },
      "mayExposeSecrets": true,
      "mayReturnUntrustedContent": true,
      "name": "move_window",
      "nestedAuthority": [],
      "outputClasses": [
        "tmux-metadata"
      ],
      "outputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "window": {
            "properties": {
              "id": {
                "description": "Stable window id, e.g. @1.",
                "pattern": "^@\\d+$",
                "type": "string"
              },
              "layout": {
                "description": "tmux's observed saved layout, including any resizing or pruning; feed it back only when metadataComplete is true.",
                "type": "string"
              },
              "metadataComplete": {
                "description": "Whether every projected metadata string is complete.",
                "type": "boolean"
              },
              "name": {
                "type": "string"
              },
              "omittedMetadataBytes": {
                "description": "UTF-8 bytes omitted from projected metadata strings.",
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "omittedPlacements": {
                "description": "Later placements omitted.",
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "panes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "placements": {
                "description": "Retained sessions and indexes where this window is linked.",
                "items": {
                  "properties": {
                    "active": {
                      "description": "Whether this placement is current in its session.",
                      "type": "boolean"
                    },
                    "index": {
                      "description": "The window index in this session.",
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    },
                    "sessionId": {
                      "description": "Stable session id, e.g. $1.",
                      "pattern": "^\\$\\d+$",
                      "type": "string"
                    },
                    "sessionName": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "index",
                    "sessionId",
                    "sessionName",
                    "active"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "placementsComplete": {
                "description": "Whether placements contains every placement.",
                "type": "boolean"
              },
              "zoomed": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "layout",
              "metadataComplete",
              "name",
              "omittedMetadataBytes",
              "panes",
              "omittedPlacements",
              "placements",
              "placementsComplete",
              "zoomed"
            ],
            "type": "object"
          }
        },
        "required": [
          "window"
        ],
        "type": "object"
      },
      "processReach": "none",
      "title": "Move window",
      "tmuxEffects": [
        "observe",
        "change"
      ],
      "toolset": "manage"
    }
  }
}
