site_crawl

Pack: web-fetch · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/site_crawl for the schema, then POST the same URL with its arguments for the data.

Read the pages of one website from a seed URL, breadth first, and return each page as markdown. Follows links to the same host only, never leaves it, and stops at hard ceilings: depth 3 and 25 fetches a call (defaults depth 2, limit 10).

Parameters

NameTypeRequiredDescription
urlstringyesThe seed page, e.g. “https://www.ferc.gov/news-events”. A seed that redirects to www or the bare domain is followed; a redirect to another site stops the crawl.
depthnumbernoLink levels to follow below the seed. Default 2, at most 3 (0 reads the seed only).
limitnumbernoThe most pages to fetch in this call. Default 10, at most 25.
path_prefixstringnoOnly follow links whose path starts with this, e.g. “/news”. The seed is always read. Default: the whole host.
text_charsnumbernoCharacters of markdown to return per page. Default 3000, at most 10000, 0 for titles and links only.
cursorstringnonext_cursor from a previous answer for the same url, to continue the crawl.

Example call

Arguments

{
  "url": "https://www.ferc.gov",
  "depth": 1,
  "limit": 5
}

curl

curl -X POST https://gateway.pipeworx.io/web-fetch/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"site_crawl","arguments":{"url":"https://www.ferc.gov","depth":1,"limit":5}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('site_crawl', {
  "url": "https://www.ferc.gov",
  "depth": 1,
  "limit": 5
});

Response shape

Always returns: seed_url

FieldTypeDescription
foundbooleanTrue when at least one page was read.
seed_urlstringThe URL you asked to crawl.
sitestringThe host crawled; links to any other host are not followed.
pages_readnumberLength of pages.
completebooleanTrue when no page is left queued within the depth and path limits.
stopped_becausestringWhy the call returned.
stopped_notestringThe same, in words, with how many pages were left.
next_cursorstring | nullPass this back with the same url to continue where this call stopped; null when complete or when the site is refusing.
retry_after_snumberWhen stopped_because is budget_exhausted: seconds until the budget frees.
pagesarrayPages read, breadth first.
pages_skippedarrayPages that were tried and not returned, each with its reason. A refused or budget-exhausted page is listed here, never dropped.
queued_remainingnumberPages found and not yet read.
max_depthnumberDepth used for this call.
path_prefixstring | nullThe path prefix links were limited to, or null.
ceilingsobjectThe hard ceilings: max_depth 3, max_fetches_per_call 25, and the limits this call used.
linksobjectWhat was seen and not followed.
documents_linkedarrayThe first document links seen (PDF, spreadsheet, data file), not fetched; read one with fetch_url or query_table.
fetchesobjectWhat this call drew on the site budget: origin reads count against the per-site and per-caller daily budgets, cache reads and guard refusals do not.
warningsarrayAnything that limits the answer.
fetched_atstringISO time of the call.
errorstringRefusal class when the call could not be answered: blocked_url, upstream_refused, upstream_down, upstream_status, budget_exhausted, invalid_argument.
messagestringWhy, in words, for an error.
rulestringFor blocked_url: the rule that refused the address.
hintstringWhat to do next, on a refusal or an empty answer.
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean",
      "description": "True when at least one page was read."
    },
    "seed_url": {
      "type": "string",
      "description": "The URL you asked to crawl."
    },
    "site": {
      "type": "string",
      "description": "The host crawled; links to any other host are not followed."
    },
    "pages_read": {
      "type": "number",
      "description": "Length of pages."
    },
    "complete": {
      "type": "boolean",
      "description": "True when no page is left queued within the depth and path limits."
    },
    "stopped_because": {
      "type": "string",
      "enum": [
        "complete",
        "page_limit",
        "time_budget",
        "budget_exhausted",
        "site_refusing"
      ],
      "description": "Why the call returned."
    },
    "stopped_note": {
      "type": "string",
      "description": "The same, in words, with how many pages were left."
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass this back with the same url to continue where this call stopped; null when complete or when the site is refusing."
    },
    "retry_after_s": {
      "type": "number",
      "description": "When stopped_because is budget_exhausted: seconds until the budget frees."
    },
    "pages": {
      "type": "array",
      "description": "Pages read, breadth first.",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The page address after redirects."
          },
          "requested_url": {
            "type": "string",
            "description": "The address asked for, when it redirected."
          },
          "depth": {
            "type": "number",
            "description": "Links from the seed (the seed is 0)."
          },
          "status": {
            "type": "number",
            "description": "HTTP status."
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "The page title; null for a PDF or a page without one."
          },
          "text": {
            "type": [
              "string",
              "null"
            ],
            "description": "The page as markdown (plain text for a PDF or a text file), cut to text_chars; null when text_chars was 0."
          },
          "text_format": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "markdown",
              "plain",
              null
            ],
            "description": "What text is."
          },
          "text_chars_total": {
            "type": "number",
            "description": "Characters in the whole page text before the cut."
          },
          "text_truncated": {
            "type": "boolean",
            "description": "True when text is shorter than the page."
          },
          "content_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Content type the site sent."
          },
          "links_found": {
            "type": "number",
            "description": "Links to this site on the page."
          },
          "served_from": {
            "type": "string",
            "description": "origin, or cache when the page was read in the last ten minutes."
          }
        },
        "required": [
          "url",
          "depth",
          "status"
        ]
      }
    },
    "pages_skipped": {
      "type": "array",
      "description": "Pages that were tried and not returned, each with its reason. A refused or budget-exhausted page is listed here, never dropped.",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The page."
          },
          "depth": {
            "type": "number",
            "description": "Links from the seed."
          },
          "reason": {
            "type": "string",
            "description": "upstream_refused, upstream_down, upstream_status, budget_exhausted, blocked_url, not_a_text_page, redirected_off_host, redirected_off_site, duplicate_after_redirect or another fetch refusal class."
          },
          "detail": {
            "type": "string",
            "description": "Finer cause, e.g. bot_wall or http_403."
          },
          "status": {
            "type": [
              "number",
              "null"
            ],
            "description": "HTTP status when there was one."
          },
          "message": {
            "type": "string",
            "description": "Refusal text."
          },
          "retry_after_s": {
            "type": "number",
            "description": "For budget_exhausted: seconds until it frees."
          },
          "budget_scope": {
            "type": "string",
            "description": "For budget_exhausted: caller_share, host_total or internal_sub_budget."
          }
        },
        "required": [
          "url",
          "reason"
        ]
      }
    },
    "queued_remaining": {
      "type": "number",
      "description": "Pages found and not yet read."
    },
    "max_depth": {
      "type": "number",
      "description": "Depth used for this call."
    },
    "path_prefix": {
      "type": [
        "string",
        "null"
      ],
      "description": "The path prefix links were limited to, or null."
    },
    "ceilings": {
      "type": "object",
      "description": "The hard ceilings: max_depth 3, max_fetches_per_call 25, and the limits this call used."
    },
    "links": {
      "type": "object",
      "description": "What was seen and not followed.",
      "properties": {
        "off_host_not_followed": {
          "type": "number",
          "description": "Links to another host."
        },
        "filtered_by_prefix_or_asset": {
          "type": "number",
          "description": "Links outside path_prefix, or images, styles, scripts and archives."
        },
        "beyond_depth_not_followed": {
          "type": "number",
          "description": "Links past the depth limit."
        },
        "documents_not_fetched": {
          "type": "number",
          "description": "Links to documents (PDF, spreadsheet, data file) listed but not read."
        }
      }
    },
    "documents_linked": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The first document links seen (PDF, spreadsheet, data file), not fetched; read one with fetch_url or query_table."
    },
    "fetches": {
      "type": "object",
      "description": "What this call drew on the site budget: origin reads count against the per-site and per-caller daily budgets, cache reads and guard refusals do not.",
      "properties": {
        "origin": {
          "type": "number",
          "description": "Reads that went to the site."
        },
        "cache": {
          "type": "number",
          "description": "Reads answered from the short-lived store (no request to the site)."
        },
        "refused_before_fetch": {
          "type": "number",
          "description": "Reads refused before any request (blocked address, spent budget)."
        }
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Anything that limits the answer."
    },
    "fetched_at": {
      "type": "string",
      "description": "ISO time of the call."
    },
    "error": {
      "type": "string",
      "description": "Refusal class when the call could not be answered: blocked_url, upstream_refused, upstream_down, upstream_status, budget_exhausted, invalid_argument."
    },
    "message": {
      "type": "string",
      "description": "Why, in words, for an error."
    },
    "rule": {
      "type": "string",
      "description": "For blocked_url: the rule that refused the address."
    },
    "hint": {
      "type": "string",
      "description": "What to do next, on a refusal or an empty answer."
    }
  },
  "required": [
    "seed_url"
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the web-fetch pack
{
  "mcpServers": {
    "web-fetch": {
      "url": "https://gateway.pipeworx.io/web-fetch/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build December 4, 2026