{
  "name": "create_session",
  "wireName": "create_session",
  "source": {
    "repo": "libtmux/libtmux-julia",
    "revision": "f3da513be1225d36d5854cd8db5972c01857578e",
    "extractedRevision": "f3da513be1225d36d5854cd8db5972c01857578e",
    "file": "packages/LibTmuxMCP/src/tools.jl",
    "line": 9
  },
  "description": "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.",
  "schemaStatus": "runtime",
  "enabledByDefault": false,
  "enableOption": "--tool",
  "inputSchema": {
    "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"
  },
  "outputSchema": {
    "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"
              },
              "retryable": {
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "message",
              "effects",
              "retryable"
            ],
            "type": "object"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      }
    ],
    "type": "object"
  },
  "annotations": {
    "destructiveHint": false,
    "idempotentHint": false,
    "openWorldHint": true,
    "readOnlyHint": false
  }
}
