# show_option

Source: https://libtmux.org/en/py/stable/mcp/tools/show_option/

> Show a tmux option value.

tool MCPstable

MCP is in development

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

* **show_option**( [global\_](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.input%2Fproperties%2Fglobal_)?: [boolean](https://json-schema.org/understanding-json-schema/reference/boolean "boolean (JSON Schema)"), [option](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.input%2Fproperties%2Foption): [string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)"), [scope](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.input%2Fproperties%2Fscope)?: "server" | "session" | "window" | "pane" | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"), [socket_name](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.input%2Fproperties%2Fsocket_name)?: [string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"), [target](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.input%2Fproperties%2Ftarget)?: [string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"), )

  tool \[[source](https://github.com/tmux-python/libtmux-mcp/blob/4daddc0dfca96c43bf521d818bf91564e1434760/src/libtmux_mcp/tools/option_tools.py#L153)][¶](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option)

  Show a tmux option value.

  Use to check tmux configuration values such as history-limit, mouse support, or status bar settings.

  * MCP request method

    `tools/call` Send `show_option` as the tool name, with the arguments below.

  ## Arguments[#](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.parameters)

  * **[`global_`](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.input%2Fproperties%2Fglobal_)**? = `false` ([boolean](https://json-schema.org/understanding-json-schema/reference/boolean "boolean (JSON Schema)"))

    Whether to query the global option.

  * **[`option`](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.input%2Fproperties%2Foption)** ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)"))

    The tmux option name to query.

  * **[`scope`](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.input%2Fproperties%2Fscope)**? = `null` ("server" | "session" | "window" | "pane" | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"))

    Option scope.

  * **[`socket_name`](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.input%2Fproperties%2Fsocket_name)**? = `null` ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"))

    tmux socket name.

  * **[`target`](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.input%2Fproperties%2Ftarget)**? = `null` ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"))

    Target identifier. For session scope: session name (e.g. ‘mysession’). For window scope: window ID (e.g. ‘@1’). For pane scope: pane ID (e.g. ‘%1’). Requires scope.

  No other arguments are accepted.

  ## Result[#](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.result)

  Returns [object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)")

  * **[`option`](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.output%2Fproperties%2Foption)** ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)"))

    Option name

  * **[`value`](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.output%2Fproperties%2Fvalue)** (any value)

    Option value

  ## Annotations[#](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.annotations)

  * [`destructiveHint`](https://libtmux.org/en/py/stable/mcp/reference/glossary/#destructiveHint)

    `true`

  * [`idempotentHint`](https://libtmux.org/en/py/stable/mcp/reference/glossary/#idempotentHint)

    `false`

  * [`openWorldHint`](https://libtmux.org/en/py/stable/mcp/reference/glossary/#openWorldHint)

    `true`

  * [`readOnlyHint`](https://libtmux.org/en/py/stable/mcp/reference/glossary/#readOnlyHint)

    `false`

  ## Protocol data[#](https://libtmux.org/en/py/stable/mcp/tools/show_option/#mcp.tool.show_option.schemas)

  Use the complete advertised contract for validation and client integration.

  Input schema

  ```json
  {
    "additionalProperties": false,
    "properties": {
      "global_": {
        "default": false,
        "description": "Whether to query the global option.",
        "type": "boolean"
      },
      "option": {
        "description": "The tmux option name to query.",
        "type": "string"
      },
      "scope": {
        "anyOf": [
          {
            "enum": [
              "server",
              "session",
              "window",
              "pane"
            ],
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "default": null,
        "description": "Option scope."
      },
      "socket_name": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "default": null,
        "description": "tmux socket name."
      },
      "target": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "default": null,
        "description": "Target identifier. For session scope: session name\n(e.g. 'mysession'). For window scope: window ID (e.g. '@1').\nFor pane scope: pane ID (e.g. '%1'). Requires scope."
      }
    },
    "required": [
      "option"
    ],
    "type": "object"
  }
  ```

  Output schema

  ```json
  {
    "description": "Result of a show_option call.",
    "properties": {
      "option": {
        "description": "Option name",
        "type": "string"
      },
      "value": {
        "description": "Option value"
      }
    },
    "required": [
      "option",
      "value"
    ],
    "type": "object"
  }
  ```
