create_window
-
Start a pane’s configured process; accepts no command payload. Add a window to a session and return it with its pane.
- MCP request method
tools/callSendcreate_windowas the tool name, with the arguments below.- Wraps
session.Session.newWindowThe library call this tool makes:packages/mcp/src/tools/lifecycle.ts:169.
Arguments
Result
Returns object
-
Stable pane id, e.g. %1.
- pattern
"^%\\d+$"
-
-
Stable window id, e.g. @1.
- pattern
"^@\\d+$"
-
tmux’s observed saved layout, including any resizing or pruning; feed it back only when metadataComplete is true.
-
Whether every projected metadata string is complete.
-
omittedMetadataBytes(integer)UTF-8 bytes omitted from projected metadata strings.
- minimum
0- maximum
9007199254740991
-
Later placements omitted.
- minimum
0- maximum
9007199254740991
-
- minimum
-9007199254740991- maximum
9007199254740991
-
Retained sessions and indexes where this window is linked.
-
-
Whether this placement is current in its session.
-
The window index in this session.
- minimum
-9007199254740991- maximum
9007199254740991
-
Stable session id, e.g. $1.
- pattern
"^\\$\\d+$"
No other properties are accepted.
-
-
-
Whether placements contains every placement.
No other properties are accepted.
-
No other properties are accepted.
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalse
Capability
- Toolset
- Execute Start or drive pane processes, or store state that can control later execution.
- Process reach
configured-process- tmux effects
observechange
Every TypeScript tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.
Protocol data
Use the complete advertised contract for validation and client integration.
Input schema
{"$schema": "http://json-schema.org/draft-07/schema#","properties": {"name": {"description": "Name for the new window.","type": "string","x-libtmux-tmux-format": "literalized-once"},"session": {"description": "Session id ($1) or name.","type": "string"},"startDirectory": {"description": "Working directory for the new pane. Defaults to the session's.","type": "string","x-libtmux-tmux-format": "literalized-once"}},"required": ["session"],"type": "object"}Output schema
{"$schema": "http://json-schema.org/draft-07/schema#","additionalProperties": false,"properties": {"paneId": {"description": "Stable pane id, e.g. %1.","pattern": "^%\\d+$","type": "string"},"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": ["paneId","window"],"type": "object"}