{
  "name": "search_panes",
  "wireName": "search_panes",
  "source": {
    "repo": "libtmux/libtmux-java",
    "revision": "842228310449e879ebcaa3f910597757c9dbffd6",
    "extractedRevision": "a960145afeefb340d85ea76ea0d62c29517b1c85",
    "file": "libtmux-mcp/src/main/java/io/github/libtmux/mcp/Catalog.java",
    "line": 322
  },
  "description": "Searches the visible output of every pane. Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted.",
  "schemaStatus": "runtime",
  "inputSchema": {
    "additionalProperties": false,
    "properties": {
      "max_lines": {
        "default": 200,
        "description": "Maximum matches across all panes. Defaults to 200.",
        "type": "integer"
      },
      "max_matches_per_pane": {
        "default": 5,
        "description": "Maximum matching lines per pane. Defaults to 5.",
        "type": "integer"
      },
      "pattern": {
        "description": "The bounded text or regular expression to search for.",
        "maxLength": 4096,
        "type": "string"
      },
      "regex": {
        "default": false,
        "description": "Treat pattern as a regular expression. Defaults to false.",
        "type": "boolean"
      }
    },
    "required": [
      "pattern"
    ],
    "type": "object"
  },
  "outputSchema": {
    "additionalProperties": false,
    "properties": {
      "bytes_searched": {
        "type": "integer"
      },
      "count": {
        "type": "integer"
      },
      "limited": {
        "type": "boolean"
      },
      "lines_searched": {
        "type": "integer"
      },
      "matches": {
        "items": {
          "additionalProperties": false,
          "properties": {
            "line": {
              "type": "string"
            },
            "pane_id": {
              "type": "string"
            },
            "session": {
              "type": "string"
            },
            "window": {
              "type": "string"
            }
          },
          "required": [
            "pane_id",
            "session",
            "window",
            "line"
          ],
          "type": "object"
        },
        "type": "array"
      },
      "note": {
        "type": "string"
      },
      "panes_searched": {
        "type": "integer"
      },
      "work_seconds": {
        "type": "number"
      }
    },
    "required": [
      "count",
      "panes_searched",
      "lines_searched",
      "bytes_searched",
      "work_seconds",
      "limited",
      "matches"
    ],
    "type": "object"
  },
  "annotations": {
    "destructiveHint": true,
    "idempotentHint": false,
    "openWorldHint": true,
    "readOnlyHint": false,
    "title": "Search panes"
  },
  "meta": {
    "com.git-pull.libtmux-mcp/capability": {
      "amplifiesFutureInput": false,
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Searches the visible output of every pane. Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted.",
      "inputLiteralization": {},
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "max_lines": {
            "default": 200,
            "description": "Maximum matches across all panes. Defaults to 200.",
            "type": "integer"
          },
          "max_matches_per_pane": {
            "default": 5,
            "description": "Maximum matching lines per pane. Defaults to 5.",
            "type": "integer"
          },
          "pattern": {
            "description": "The bounded text or regular expression to search for.",
            "maxLength": 4096,
            "type": "string"
          },
          "regex": {
            "default": false,
            "description": "Treat pattern as a regular expression. Defaults to false.",
            "type": "boolean"
          }
        },
        "required": [
          "pattern"
        ],
        "type": "object"
      },
      "mayExposeSecrets": true,
      "mayReturnUntrustedContent": true,
      "name": "search_panes",
      "nestedAuthority": [],
      "outputClasses": [
        "tmux-metadata",
        "terminal-content"
      ],
      "outputSchema": {
        "additionalProperties": false,
        "properties": {
          "bytes_searched": {
            "type": "integer"
          },
          "count": {
            "type": "integer"
          },
          "limited": {
            "type": "boolean"
          },
          "lines_searched": {
            "type": "integer"
          },
          "matches": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "line": {
                  "type": "string"
                },
                "pane_id": {
                  "type": "string"
                },
                "session": {
                  "type": "string"
                },
                "window": {
                  "type": "string"
                }
              },
              "required": [
                "pane_id",
                "session",
                "window",
                "line"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "note": {
            "type": "string"
          },
          "panes_searched": {
            "type": "integer"
          },
          "work_seconds": {
            "type": "number"
          }
        },
        "required": [
          "count",
          "panes_searched",
          "lines_searched",
          "bytes_searched",
          "work_seconds",
          "limited",
          "matches"
        ],
        "type": "object"
      },
      "processReach": "none",
      "title": "Search panes",
      "tmuxEffects": [
        "observe"
      ],
      "toolset": "inspect"
    }
  }
}
