{
  "name": "rename_session",
  "wireName": "rename_session",
  "source": {
    "repo": "libtmux/libtmux-rs",
    "revision": "2cef1aa642182dd1970c3688feb6a568ff666e64",
    "extractedRevision": "2cef1aa642182dd1970c3688feb6a568ff666e64",
    "file": "crates/tmux-mcp/src/tools/contract.rs",
    "line": 713
  },
  "description": "Rename one session. Change tmux state; no client-supplied executable input.",
  "schemaStatus": "runtime",
  "inputSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "additionalProperties": false,
    "properties": {
      "name": {
        "description": "The new name. tmux refuses one another session has.",
        "type": "string"
      },
      "session": {
        "description": "The session to rename, by `$`-prefixed id or name.",
        "type": "string"
      }
    },
    "required": [
      "session",
      "name"
    ],
    "type": "object"
  },
  "outputSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
      "attached": {
        "description": "Whether any client is attached.",
        "type": "boolean"
      },
      "id": {
        "description": "The `$`-prefixed tmux identity.",
        "type": "string"
      },
      "name": {
        "description": "The session name, absent when tmux reported none.",
        "type": "string"
      },
      "windows": {
        "description": "How many windows the session holds.",
        "minimum": 0,
        "type": "integer"
      }
    },
    "required": [
      "id",
      "name",
      "windows",
      "attached"
    ],
    "type": "object"
  },
  "annotations": {
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false,
    "readOnlyHint": false,
    "title": "Rename Session"
  },
  "meta": {
    "com.git-pull.libtmux-mcp/capability": {
      "amplifiesFutureInput": false,
      "inputLiteralization": {
        "name": "double-hash-once"
      },
      "mayExposeSecrets": true,
      "mayReturnUntrustedContent": true,
      "nestedAuthority": [],
      "outputClasses": [
        "tmux-metadata"
      ],
      "processReach": "none",
      "tmuxEffects": [
        "change"
      ],
      "toolset": "manage"
    }
  }
}
