MCPconceptTools

Choose documentation 3

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. 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

create_session

create_session( command: Array<string>, name: string, )

Start an argv command in a new application-owned session. Requires allow_create; the session is removed when the application closes. Completion means creation, not command exit. Configured tmux hooks and aliases may have effects, including during observation.

MCP request method
tools/call Send create_session as the tool name, with the arguments below.
Wraps
LibTmux.new_sessionThe library call this tool makes: packages/LibTmuxMCP/src/tools.jl:898.
Tool selection
Opt in with --tool create_session.

Arguments

  • command (Array<string>)

    Executable and argv; no shell expansion

    minItems
    1
    maxItems
    32
    • Items (string)

      Valid UTF-8; at most 1024 bytes

      maxLength
      1024
  • name (string)

    Valid UTF-8; at most 64 bytes

    maxLength
    64
    pattern
    "^[A-Za-z0-9_-]+$"

No other arguments are accepted.

Result

Returns object | object

Matches one or more variants.

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false

Capability

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

Every Julia 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": {
"command": {
"description": "Executable and argv; no shell expansion",
"items": {
"description": "Valid UTF-8; at most 1024 bytes",
"maxLength": 1024,
"type": "string"
},
"maxItems": 32,
"minItems": 1,
"type": "array"
},
"name": {
"description": "Valid UTF-8; at most 64 bytes",
"maxLength": 64,
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"name",
"command"
],
"type": "object"
}
Output schema
{
"anyOf": [
{
"additionalProperties": false,
"properties": {
"completed": {
"type": "boolean"
},
"generation": {
"type": "string"
},
"ownership": {
"const": "application"
},
"panes": {
"items": {
"additionalProperties": false,
"properties": {
"generation": {
"description": "Opaque generation from list_panes",
"maxLength": 128,
"type": "string"
},
"paneId": {
"description": "Valid UTF-8; at most 64 bytes",
"maxLength": 64,
"pattern": "^%(0|[1-9][0-9]*)$",
"type": "string"
}
},
"required": [
"paneId",
"generation"
],
"type": "object"
},
"maxItems": 256,
"type": "array"
},
"sessionId": {
"type": "string"
}
},
"required": [
"completed",
"panes",
"sessionId",
"generation",
"ownership"
],
"type": "object"
},
{
"properties": {
"error": {
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"effects": {
"enum": [
"none",
"possible"
]
},
"message": {
"type": "string"
},
"output": {
"type": "string"
},
"retryable": {
"type": "boolean"
}
},
"required": [
"code",
"message",
"effects",
"retryable"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
}
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference