{
  "name": "wait_for_text",
  "wireName": "wait_for_text",
  "source": {
    "repo": "libtmux/libtmux-cxx",
    "revision": "393d4b0ad666f18a6581f1eb281741a75a7503f0",
    "extractedRevision": "4665d2b15f76200c1caa65978d79e595541f7a90",
    "file": "apps/mcp/src/tool_catalog.cpp",
    "line": 1979
  },
  "description": "Discount this server's pending input and recent submitted echoes; unmodelled keys stop tracking the current line. Wait for a new shell's prompt before typing. `matched_at_entry` reports visible text at entry; a mode ending in -unconfirmed identifies input that was still unconfirmed at the deadline. Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted.",
  "schemaStatus": "runtime",
  "inputSchema": {
    "additionalProperties": false,
    "properties": {
      "target": {
        "description": "Pane ID or pane target.",
        "maxLength": 512,
        "type": "string"
      },
      "text": {
        "description": "Literal text to wait for.",
        "maxLength": 4096,
        "type": "string"
      },
      "timeout_ms": {
        "description": "Bounded wait in milliseconds.",
        "maximum": 60000,
        "minimum": 1,
        "type": "integer"
      }
    },
    "required": [
      "target",
      "text"
    ],
    "type": "object"
  },
  "outputSchema": {
    "additionalProperties": false,
    "properties": {
      "elapsed_ms": {
        "minimum": 0,
        "type": "integer"
      },
      "matched": {
        "type": "boolean"
      },
      "matched_at_entry": {
        "type": "boolean"
      },
      "mode": {
        "type": "string"
      },
      "pane_id": {
        "pattern": "^%[0-9]+$",
        "type": "string"
      },
      "text": {
        "type": "string"
      },
      "timed_out": {
        "type": "boolean"
      }
    },
    "required": [
      "elapsed_ms",
      "matched",
      "matched_at_entry",
      "mode",
      "text",
      "timed_out"
    ],
    "type": "object"
  },
  "annotations": {
    "destructiveHint": true,
    "idempotentHint": false,
    "openWorldHint": true,
    "readOnlyHint": false,
    "title": "Wait for pane text"
  },
  "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"
    }
  }
}
