# kill_session

Source: https://libtmux.org/en/java/latest/mcp/tools/kill_session/

> Deletes one session and every window and pane in it. Delete tmux state; accepts no command payload.

MCP is in development

Server behavior and tool contracts may change. Tool availability depends on the server configuration.

Deletes one session and every window and pane in it. Delete tmux state; accepts no command payload.

[All Java tools](https://libtmux.org/en/java/latest/mcp/tools/) · [JSON](https://libtmux.org/en/java/latest/mcp/tools/kill_session.json) · [Source](https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux-mcp/src/main/java/io/github/libtmux/mcp/TeardownTools.java#L52)

## Arguments

* `confirm_self` optional · boolean

  Permit ending the pane this MCP process runs in. Defaults to false.

  Default: `false`.

* `session_id` required · string

  The session ID, such as $1.

## Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "confirm_self": {
      "default": false,
      "description": "Permit ending the pane this MCP process runs in. Defaults to false.",
      "type": "boolean"
    },
    "session_id": {
      "description": "The session ID, such as $1.",
      "type": "string"
    }
  },
  "required": [
    "session_id"
  ],
  "type": "object"
}
```

Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "note": {
      "type": "string"
    }
  },
  "required": [
    "kind",
    "id"
  ],
  "type": "object"
}
```

Tool annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false,
  "title": "Kill a session"
}
```
