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.

create_window

Create a detached window; name and path data are literalized before tmux expansion. Start a pane’s configured process; accepts no command payload.

All C++ tools · JSON · Source

Arguments

name optional · string
Optional literal window name.
session required · string
Stable owning session ID or name.
startDirectory optional · string
Literal pane start directory.

Schemas

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

Input schema
{
"additionalProperties": false,
"properties": {
"name": {
"description": "Optional literal window name.",
"maxLength": 512,
"type": "string"
},
"session": {
"description": "Stable owning session ID or name.",
"maxLength": 512,
"type": "string"
},
"startDirectory": {
"description": "Literal pane start directory.",
"maxLength": 4096,
"type": "string"
}
},
"required": [
"session"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"session_id": {
"pattern": "^\\$[0-9]+$",
"type": "string"
},
"window_id": {
"pattern": "^@[0-9]+$",
"type": "string"
}
},
"required": [
"session_id",
"window_id"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "Create a tmux window"
}
Esc

Type to search.