MCPconceptTools

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

tool MCP

split_window

split_window( direction?: "Above" | "Below" | "Left" | "Right", paneId?: string | null, percentage?: integer | null, startDirectory?: string | null, )

Start a pane’s configured process; accepts no command payload. Split a pane and return the NEW pane’s id. Use that id for what you put in it — pane ids stay valid across layout changes, where window names and indexes do not.

MCP request method
tools/call Send split_window as the tool name, with the arguments below.
Wraps
LibTmux.Pane.SplitAsyncThe library call this tool makes: src/LibTmux.Mcp/Tools/WriteTools.Layout.cs:123.

Arguments

  • direction? = "Below" ("Above" | "Below" | "Left" | "Right")

    Below, Above, Left, or Right.

  • paneId? = null (string | null)

    The pane to split. Omit for this server’s own pane, or else the one the first session shows.

  • percentage? = null (integer | null)

    Percentage of the space for the new pane. Omit for half.

    minimum
    -2147483648
    maximum
    2147483647
  • startDirectory? = null (string | null)

    The literal starting directory. Omit for the MCP server’s own working directory.

No other arguments are accepted.

Result

Returns object

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"Split window"

Capability

Toolset
Execute Start or drive pane processes, or store state that can control later execution.
Process reach
configured-process
tmux effects
change observe

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": {
"direction": {
"default": "Below",
"description": "Below, Above, Left, or Right.",
"enum": [
"Above",
"Below",
"Left",
"Right"
],
"type": "string"
},
"paneId": {
"default": null,
"description": "The pane to split. Omit for this server's own pane, or else the one the first session shows.",
"type": [
"string",
"null"
]
},
"percentage": {
"default": null,
"description": "Percentage of the space for the new pane. Omit for half.",
"maximum": 2147483647,
"minimum": -2147483648,
"type": [
"integer",
"null"
]
},
"startDirectory": {
"default": null,
"description": "The literal starting directory. Omit for the MCP server's own working directory.",
"type": [
"string",
"null"
]
}
},
"type": "object"
}
Output schema
{
"properties": {
"changed": {
"type": "string"
},
"paneId": {
"default": null,
"type": [
"string",
"null"
]
},
"sessionId": {
"default": null,
"type": [
"string",
"null"
]
},
"windowId": {
"default": null,
"type": [
"string",
"null"
]
}
},
"required": [
"changed"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference