{
  "slug": "chrome-devtools-mcp-wait-for-accepts-any-match-text-arrays-6f6544e1788c",
  "title": "chrome-devtools-mcp wait_for accepts any-match text arrays",
  "tools": [
    "chrome-devtools-mcp"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-02-25T06:57:30.000Z",
  "announced_at": "2026-02-25T06:57:30.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a page flow can end with any of several text outcomes, call `wait_for` with `text` set to a non-empty list of candidate strings; it resolves when any listed text appears.",
    "examples": [
      "{\"name\":\"wait_for\",\"arguments\":{\"pageId\":<page_id>,\"text\":[\"Complete\",\"Error\"],\"timeout\":<milliseconds>}}"
    ],
    "gotchas": [
      "Version: 0.18.0",
      "pageId (required): Targets a specific page by ID.",
      "text (required): Non-empty list of texts; resolves when any value appears on the page.",
      "timeout: Maximum wait time in milliseconds; 0 uses the default timeout.",
      "The text list must be non-empty.",
      "`timeout` is an optional integer in milliseconds; 0 keeps default behavior."
    ]
  },
  "why_it_matters": "When a page flow may end with any of several text outcomes, wait for the first matching text.",
  "before": "Call `wait_for` with one expected string, so a flow that ends in a different text outcome can keep waiting until timeout.",
  "sources": [
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/releases/tag/chrome-devtools-mcp-v0.18.0",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/1011",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/496ab1b45f7a283a1432643777e0795a17f33667/docs/tool-reference.md"
  ],
  "rank": 0.98046,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "ghtools-20261008",
    "verdict_id": "ghtools-20261008:ghtools-20261008-210ebd676b9d5d8d-6:gate",
    "evidence_hash": "602c00b324f7e66839d16778d091c262c4ee70e978047a91d5991c04e5cd2691"
  },
  "review": {
    "draft_hash": "cec77d27f14ecc6967d88327429ff1ddaff5408f171e75698cf6e366b29e395e",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "ghtools-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.82 (>= 0.6 needed)."
  }
}
