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.
- MCP request method
tools/callSendcreate_windowas the tool name, with the arguments below.- Wraps
libtmux::Session::new_windowThe library call this tool makes:apps/mcp/src/tool_catalog.cpp:2613.
Arguments
-
Optional literal window name.
- maxLength
512
-
Stable owning session ID or name.
- maxLength
512
-
Literal pane start directory.
- maxLength
4096
No other arguments are accepted.
Result
Returns object
-
- pattern
"^\\$[0-9]+$"
-
- pattern
"^@[0-9]+$"
No other properties are accepted.
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Create a tmux window"
Capability
- Toolset
- Execute Start or drive pane processes, or store state that can control later execution.
- Process reach
configured-process- tmux effects
observechange
Every C++ 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
{"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"}