{
  "name": "search_panes",
  "wireName": "search_panes",
  "source": {
    "repo": "libtmux/libtmux-cxx",
    "revision": "393d4b0ad666f18a6581f1eb281741a75a7503f0",
    "extractedRevision": "4665d2b15f76200c1caa65978d79e595541f7a90",
    "file": "apps/mcp/src/tool_catalog.cpp",
    "line": 1879
  },
  "description": "Search captured lines using a length-limited expression. Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted.",
  "schemaStatus": "runtime",
  "inputSchema": {
    "additionalProperties": false,
    "properties": {
      "pattern": {
        "description": "Bounded regular expression.",
        "maxLength": 256,
        "type": "string"
      }
    },
    "required": [
      "pattern"
    ],
    "type": "object"
  },
  "outputSchema": {
    "additionalProperties": false,
    "properties": {
      "matches": {
        "items": {
          "additionalProperties": false,
          "properties": {
            "line": {
              "type": "string"
            },
            "pane_id": {
              "pattern": "^%[0-9]+$",
              "type": "string"
            }
          },
          "required": [
            "line",
            "pane_id"
          ],
          "type": "object"
        },
        "type": "array"
      }
    },
    "required": [
      "matches"
    ],
    "type": "object"
  },
  "annotations": {
    "destructiveHint": true,
    "idempotentHint": false,
    "openWorldHint": true,
    "readOnlyHint": false,
    "title": "Search tmux panes"
  },
  "meta": {
    "com.git-pull.libtmux-mcp/capability": {
      "amplifiesFutureInput": false,
      "inputLiteralization": {},
      "mayExposeSecrets": true,
      "mayReturnUntrustedContent": true,
      "nestedAuthority": [],
      "outputClasses": [
        "tmux-metadata",
        "terminal-content"
      ],
      "processReach": "none",
      "tmuxEffects": [
        "observe"
      ],
      "toolset": "inspect"
    }
  }
}
