{
  "name": "wait_for_text",
  "wireName": "wait_for_text",
  "source": {
    "repo": "libtmux/libtmux-julia",
    "revision": "f3da513be1225d36d5854cd8db5972c01857578e",
    "extractedRevision": "f3da513be1225d36d5854cd8db5972c01857578e",
    "file": "packages/LibTmuxMCP/src/tools.jl",
    "line": 11
  },
  "description": "Wait for a literal UTF-8 string in a captured baseline or subsequent raw output. Event-driven, bounded and cancellable; opens observable control clients. Text is data, not exit-status evidence.",
  "schemaStatus": "runtime",
  "enabledByDefault": false,
  "enableOption": "--tool",
  "inputSchema": {
    "additionalProperties": false,
    "properties": {
      "target": {
        "additionalProperties": false,
        "description": "Explicit captured target; omission requires a configured caller pane",
        "properties": {
          "generation": {
            "description": "Opaque generation from list_panes",
            "maxLength": 128,
            "type": "string"
          },
          "paneId": {
            "description": "Valid UTF-8; at most 64 bytes",
            "maxLength": 64,
            "pattern": "^%(0|[1-9][0-9]*)$",
            "type": "string"
          }
        },
        "required": [
          "paneId",
          "generation"
        ],
        "type": "object"
      },
      "text": {
        "description": "Valid UTF-8; at most 1024 bytes",
        "maxLength": 1024,
        "minLength": 1,
        "type": "string"
      }
    },
    "required": [
      "target",
      "text"
    ],
    "type": "object"
  },
  "outputSchema": {
    "anyOf": [
      {
        "additionalProperties": false,
        "properties": {
          "continuity": {
            "const": "reset"
          },
          "evidence": {
            "const": "literal_text"
          },
          "generationGuarantee": {
            "type": "string"
          },
          "keysSent": {
            "type": "boolean"
          },
          "matched": {
            "type": "boolean"
          },
          "source": {
            "enum": [
              "baseline",
              "output"
            ]
          },
          "target": {
            "additionalProperties": false,
            "properties": {
              "generation": {
                "description": "Opaque generation from list_panes",
                "maxLength": 128,
                "type": "string"
              },
              "paneId": {
                "description": "Valid UTF-8; at most 64 bytes",
                "maxLength": 64,
                "pattern": "^%(0|[1-9][0-9]*)$",
                "type": "string"
              }
            },
            "required": [
              "paneId",
              "generation"
            ],
            "type": "object"
          },
          "terminalContent": {
            "const": "data"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "matched",
          "source",
          "terminalContent",
          "evidence",
          "continuity",
          "text",
          "generationGuarantee",
          "keysSent",
          "target"
        ],
        "type": "object"
      },
      {
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "effects": {
                "enum": [
                  "none",
                  "possible"
                ]
              },
              "message": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "message",
              "effects",
              "retryable"
            ],
            "type": "object"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      }
    ],
    "type": "object"
  },
  "annotations": {
    "destructiveHint": false,
    "idempotentHint": false,
    "openWorldHint": true,
    "readOnlyHint": true
  }
}
