{
  "slug": "wrangler-ai-search-create-accepts-parse-type-4913770dbac3",
  "title": "wrangler ai-search create accepts --parse-type",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-05T12:30:50.000Z",
  "announced_at": "2026-08-05T12:30:50.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When creating a website crawler that should discover pages by following links, set `--type web-crawler` and `--parse-type discover`.",
    "examples": [
      "npx wrangler ai-search create <NAME> --type web-crawler --source <WEBSITE_URL> --parse-type discover"
    ],
    "gotchas": [
      "Version: 4.119.0",
      "<NAME> (required): AI Search instance name; must be unique within its namespace.",
      "--type: Source type; use `web-crawler` for a website.",
      "--source: Data source identifier: R2 bucket name or website URL.",
      "--parse-type: Website URL discovery method; `discover` follows links recursively, while `sitemap` reads XML sitemaps. Documented as for `--type web-crawler` only; defaults to `sitemap`.",
      "Prerequisite: Install Wrangler before using the CLI.",
      "`--parse-type` is valid only with `--type web-crawler`; it is rejected with `--type builtin` or `--type r2`.",
      "The interactive wizard offers `Discover` alongside `Sitemap`.",
      "When the flag is omitted in non-interactive mode, the field is left unset and the API default (`sitemap`) applies."
    ]
  },
  "why_it_matters": "Create a scripted web-crawler AI Search instance that discovers URLs by following links.",
  "before": "The release note says the parse type could only be chosen through the interactive wizard, which was skipped when `--source` was supplied; scripted creation of a `discover` instance was therefore unavailable.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.119.0",
    "https://developers.cloudflare.com/ai-search/wrangler-commands/",
    "https://developers.cloudflare.com/ai-search/get-started/wrangler/"
  ],
  "rank": 0.98035,
  "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": "augsep-20261008",
    "verdict_id": "augsep-20261008:augsep-20261008-4a991e0a71da50a6-0:gate",
    "evidence_hash": "134e4e5993577e831ccb0b0688252d1f4299f551ae281fb9b86899b9964dda69"
  },
  "review": {
    "draft_hash": "f7f1d26ddbe6240ff93d3a16182ebc3907c616d979526108d14f1966c0bbbad7",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "augsep-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.83 (>= 0.6 needed)."
  }
}
