@crawlbrulee/mcp 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +9 -9
  2. package/dist/index.js +31 -21
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -195,7 +195,7 @@ the pdf link is a signed link that expires 24 hours after the scrape, like a scr
195
195
  }
196
196
  ```
197
197
 
198
- **a page the site served is a result, not an error.** `page_status_code` is the HTTP status the site answered with for the final page, after redirects. a 404, 410 or 503 page comes back with its content and its status here, so check `page_status_code` before you trust the content: a 404 means the markdown is the site's "not found" page. 2xx and 4xx pages are billed, except 403, 407, 408, 429 and 451; 5xx pages are never billed. when the site can't be reached at all, the tool returns a `target_unreachable` error instead (see [errors](#errors)).
198
+ **a page the site served is a result, not an error.** `page_status_code` is the HTTP status the site answered with for the final page, after redirects. a 404, 410 or 503 page comes back with its content and its status here, so check `page_status_code` before you trust the content: a 404 means the markdown is the site's "not found" page. 2xx and 4xx pages are billed, except 403, 407, 408, 429, 444 and 451; 5xx pages are never billed. when the site can't be reached at all, the tool returns a `target_unreachable` error instead (see [errors](#errors)).
199
199
 
200
200
  alongside `response_meta.usage`, the result surfaces any non-fatal `warnings` — stable string codes an agent can switch on. an outsized page is truncated rather than refused, and the code names which part was cut:
201
201
 
@@ -258,7 +258,7 @@ fetch the extracted content of a completed async job — the same result shape a
258
258
 
259
259
  ### `map`
260
260
 
261
- build (or fetch a cached) link map of a website from its sitemaps, plus the links on its home page. use this to enumerate a site before scraping selected pages. every link is `{ url, type, lastmod }`: `type` is `page` or `sitemap`, and `lastmod` is the entry's date from the sitemap, in UTC, or `null` when the sitemap gives none. a link found on the home page is a `page` with `lastmod: null`.
261
+ build (or fetch a cached) link map of a website from its sitemaps, plus the links on its home page. use this to enumerate a site before scraping selected pages. every link is `{ url, type, lastmod }`: `type` is `page`, `sitemap` or `sitemap_index` (a sitemap file that lists other sitemap files), and `lastmod` is the entry's date from the sitemap, in UTC, or `null` when the sitemap gives none. a link found on the home page is a `page` with `lastmod: null`. a `sitemap_index` is a file the map found to be an index. `sitemap` is a file that lists pages, or one the map did not open (past `depth`, or it could not be read). read either kind with `sitemap_url` in another call.
262
262
 
263
263
  a plain map (`{ "url": "https://example.com" }`) returns pages. it reads the site's top sitemap files and two levels of nested ones, and adds the links on the home page.
264
264
 
@@ -266,7 +266,7 @@ a plain map (`{ "url": "https://example.com" }`) returns pages. it reads the sit
266
266
  | ---------------- | ------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
267
267
  | `sitemap_url` | a full http or https address | none | start from this sitemap file. it must be on the same site as `url`, or on a host the site's robots.txt names, such as a CDN. left out: start from the site's own top sitemap files. |
268
268
  | `depth` | `0` to `3` | `3` | how many levels of nested sitemaps to follow (see below). |
269
- | `entries` | `pages` \| `sitemaps` \| `all` | `pages` | what to return: page addresses, sitemap files, or both. |
269
+ | `entries` | `pages` \| `sitemaps` \| `all` | `pages` | what to return: page addresses, sitemap files (`sitemap` or `sitemap_index`), or both. |
270
270
  | `modified_since` | a date, or ISO 8601 with a zone | none | only entries whose `lastmod` is at or after it (see below). |
271
271
  | `max_results` | `1` to `100000` | `5000` | the most entries the map finds, counting only the kind in `entries`. a discovery budget, not a trim at the end (see below). |
272
272
  | `limit` | `1` to `10000` | `5000` | links per page of the answer. it only pages the answer. |
@@ -310,22 +310,22 @@ the response's `response_meta` carries `pagination`, `truncation`, and a `usage`
310
310
  `discovery_cap_reason` is one of these, or `null` when nothing stopped discovery:
311
311
 
312
312
  - `max_results`: your own `max_results` was reached. ask again with a higher one to get more.
313
- - `depth`: there are sitemap files past the `depth` you asked for. they are in `unread_sitemaps`. this is the answer to the depth you chose, not a fault.
313
+ - `depth`: there are sitemap files past the `depth` you asked for. they are in `unread_sitemaps`. this is the answer to the depth you chose, not a fault. read each one with `sitemap_url`, or ask with a higher `depth`.
314
314
  - `unread_files`: a sitemap file could not be read whole this time. when its download broke off, the links received before the break are returned, and the file is in `unread_sitemaps`. often temporary, so asking again later can return more.
315
315
  - `time`, `file_budget`, `file_size`: the site is big or slow, and a retry will not help. with `file_size`, a file of pages that turns out too large while it is read gives the links in its first part. a file that says up front that it is over the size limit, or any other file that turns out too large (such as a sitemap index), gives nothing and is in `unread_sitemaps`.
316
316
 
317
317
  #### map a very large site in several calls
318
318
 
319
- a very large or deep site is mapped in several calls: list its sitemap files with `depth: 0` and `entries: "sitemaps"`, then read each one with `sitemap_url`. `truncation.unread_sitemaps` names the files a call did not read whole, to read next. the full walk-through is in [map a very large or deep site in several calls](https://crawlbrulee.com/docs/map/sitemaps#map-a-very-large-or-deep-site-in-several-calls).
319
+ a very large or deep site is mapped in several calls. first ask with `depth: 1` and `entries: "sitemaps"`: one call lists the site's top sitemap files and every file they list. a listed file shows as `sitemap` until a map reads it, even when it is an index. then read each link of type `sitemap`, plus each `sitemap_index` link that is also in `truncation.unread_sitemaps` (an index this map read only in part), with `sitemap_url`, one file per call: the files of an index read whole are already in your list. or ask with a higher `depth`. the full walk-through is in [map a very large or deep site in several calls](https://crawlbrulee.com/docs/map/sitemaps#map-a-very-large-or-deep-site-in-several-calls).
320
320
 
321
321
  ```jsonc
322
- // 1. list the site's top sitemap files
323
- { "url": "https://example.com", "depth": 0, "entries": "sitemaps" }
324
- // 2. read one of them
322
+ // 1. list the site's top sitemap files and every file they list
323
+ { "url": "https://example.com", "depth": 1, "entries": "sitemaps" }
324
+ // 2. read one of them: a `sitemap` link, or a `sitemap_index` link that is also in unread_sitemaps
325
325
  { "url": "https://example.com", "sitemap_url": "https://example.com/sitemap-products-1.xml.gz" }
326
326
  ```
327
327
 
328
- `modified_since` leaves out every entry with no `lastmod`, and a map with it is always fresh, so `cache.max_age` does nothing. see [find what changed since a date](https://crawlbrulee.com/docs/map/sitemaps#find-what-changed-since-a-date).
328
+ `modified_since` leaves out every entry with no `lastmod`, and a map with it is always fresh, so `cache.max_age` does nothing. every sitemap file is read whatever its own date, and each entry is judged by its own `lastmod`. with `entries: "sitemaps"` a file is returned by its own date, not by the dates of the pages in it, so ask with `entries: "pages"` to find the pages that changed. see [find what changed since a date](https://crawlbrulee.com/docs/map/sitemaps#find-what-changed-since-a-date).
329
329
 
330
330
  if the site answers `429` on the file in `sitemap_url`, on its robots.txt or on one of its top sitemap files, the tool returns `too_many_requests` (not billed): wait and try again.
331
331
 
package/dist/index.js CHANGED
@@ -282,7 +282,7 @@ const API_PROXY_TIER_VALUES = [
282
282
  "advanced",
283
283
  "auto"
284
284
  ];
285
- const Schema_ApiProxyType = z.enum(API_PROXY_TIER_VALUES).default("auto").describe("Proxy tier: basic, advanced, or auto. Defaults to auto (automatic selection: basic tier first, escalates to advanced on failure).");
285
+ const Schema_ApiProxyType = z.enum(API_PROXY_TIER_VALUES).default("auto").describe("Proxy tier: basic, advanced, or auto. Defaults to auto: we start with the lightest way to get the page and step up our effort on our own when a site needs more, and bill the tier that delivered.");
286
286
  const Schema_ApiScrapeViewport = z.object({
287
287
  width: z.number().int().min(16).max(1e4).describe("Viewport width in pixels (16–10000)"),
288
288
  height: z.number().int().min(16).max(1e4).describe("Viewport height in pixels (16–10000)"),
@@ -316,9 +316,9 @@ const Schema_ApiScrapeRequest = z.object({
316
316
  url: z.string().describe("The URL to scrape. Known tracking parameters are removed before the page is fetched, so they are neither sent to the target site nor part of the cache key. Every other query parameter is kept verbatim and is part of the cache key."),
317
317
  extract: Schema_ApiScrapeExtract.prefault({}).describe("Which content formats to extract. Defaults to markdown + metadata."),
318
318
  cache: Schema_ApiScrapeCache.optional().describe("Cache settings for this request"),
319
- require_js: z.boolean().default(false).describe("Use a headless browser to render JavaScript before scraping"),
319
+ require_js: z.boolean().default(false).describe("Go straight to a headless browser to render JavaScript before scraping. Without it, we still move to a browser on our own when a page needs one; set it when you already know the page needs JavaScript, to save time."),
320
320
  cleanup: Schema_ApiScrapeCleanup.prefault({ ...DEFAULT_SCRAPE_CLEANUP }),
321
- proxy: Schema_ApiProxyType.describe("Proxy tier to use for fetching"),
321
+ proxy: Schema_ApiProxyType.describe("Proxy tier. Defaults to auto: we start with the lightest way to get the page and step up our effort on our own when a site needs more (a stronger proxy, a real browser, or both), and bill the tier that delivered. basic or advanced pins the tier."),
322
322
  location: Schema_ApiScrapeLocation.optional(),
323
323
  zero_data_retention: z.boolean().optional().describe("Keeps the result out of the shared cache; anything stored to deliver it is kept for 24 hours, then deleted. Adds 1 credit. Must be enabled for your organization. See https://crawlbrulee.com/docs/zero-data-retention."),
324
324
  headers: Schema_ScrapeCustomHeaders.optional().describe(`Your own HTTP headers to send to the site with the request, for example \`Authorization\`, an api key, or a fixed \`User-Agent\` that the site has on an allowlist. Sent only to the origin of \`url\` (same scheme, host and port), or to its https version when \`url\` is http, and not on a redirect to another origin. Up to ${10} headers; headers and cookies together up to ${MAX_SCRAPE_CUSTOM_HEADERS_AND_COOKIES_BYTES} bytes. Values are printable ASCII, with no space or tab at either end. Headers a browser doesn't let a web page set can't be set here either (a 400 names the header). Use \`cookies\` for cookies and \`location.locale\` for the language. Never put secrets in the \`User-Agent\`. Your own \`User-Agent\` can lower the success rate, and the response carries the \`custom_user_agent\` warning. A \`Referer\` must be the full http or https url of a public page, with no username or password; it is sent the way a browser sends it after a click on that page. A request with headers or cookies never reads from or writes to the cache. On a plain http url they travel unencrypted. ${HEADERS_AND_COOKIES_CHAT_NOTE} See ${HEADERS_AND_COOKIES_DOCS_URL}.`),
@@ -351,16 +351,16 @@ const API_MAP_ENTRIES_VALUES = [
351
351
  ];
352
352
  const Schema_ApiMapRequest = z.object({
353
353
  url: z.string().describe("The website URL to map. Mapping always targets the site root, so the path, query string and fragment are dropped; known tracking parameters are removed before the request is processed."),
354
- proxy: Schema_ApiProxyType.default("auto").describe("Proxy tier to use for fetching"),
354
+ proxy: Schema_ApiProxyType.default("auto").describe("Proxy tier. Defaults to auto: we start on basic and move to a stronger proxy on our own when a site needs it, and bill the tier that delivered. basic or advanced pins the tier."),
355
355
  sitemap_only: z.boolean().default(false).describe("Use the sitemaps only: leave out the links found on the home page. A map with `modified_since` or `sitemap_url` never adds home page links."),
356
356
  types: Schema_ApiMapTypes.optional().describe("Filter which link types to include"),
357
357
  cache: Schema_ApiMapCache.optional().describe("Cache settings for this request"),
358
358
  max_results: z.number().int().positive().max(MAX_API_MAP_MAX_RESULTS).optional().describe(`The most entries the map finds, counting only the kind asked for in \`entries\`. Default ${DEFAULT_API_MAP_MAX_RESULTS}, maximum ${MAX_API_MAP_MAX_RESULTS}. Discovery stops as soon as this many have been found, so a smaller value is a faster and lighter map, not just a smaller answer.`),
359
359
  max_urls: z.number().int().positive().max(MAX_API_MAP_MAX_RESULTS).optional().describe("Deprecated: use `max_results`, which means the same. This tool sends it as `max_results`. When both are given, only `max_results` is used."),
360
360
  sitemap_url: z.string().optional().describe("Start from this sitemap file, as a full http or https address. It must be on the same site as `url`, or on a host the site's robots.txt names, such as a CDN. Left out: start from the site's own top sitemap files."),
361
- depth: z.number().int().nonnegative().optional().describe(`How many levels of nested sitemaps to follow: 0 to 3, default ${3}. With \`sitemap_url\`, level 0 is that file, and it is read. Without it, level 0 is the list of the site's top sitemap files, which 0 returns without reading them: \`depth: 0\` with \`entries: "sitemaps"\` lists them. A sitemap index holds only sitemap files, so reading one at a low depth with \`entries: "pages"\` returns no pages: ask with \`entries: "sitemaps"\` or a higher depth. A site with a deeper tree is mapped in several calls, one per file.`),
362
- entries: z.enum(API_MAP_ENTRIES_VALUES).optional().describe("What to return: `pages` (page addresses, the default), `sitemaps` (sitemap files) or `all` (both)."),
363
- modified_since: z.union([z.iso.date(), z.iso.datetime({ offset: true })]).optional().describe("Return only entries whose `lastmod` is at or after this date (`2026-11-01`, the start of that day in UTC) or date and time (ISO 8601, with a time zone). An entry with no `lastmod` is left out, so every entry returned matches; links found on the home page have none, so none is returned. A nested sitemap whose own `lastmod` is older is not read, so a site that does not update the dates in its sitemap index can hide changed pages. A request with this field is always mapped fresh: it never reads from or adds to the cache, so `cache.max_age` does nothing, and it is priced as a fresh map."),
361
+ depth: z.number().int().nonnegative().optional().describe(`How many levels of nested sitemaps to follow: 0 to 3, default ${3}. With \`sitemap_url\`, level 0 is that file, and it is read. Without it, level 0 is the list of the site's top sitemap files, which 0 returns without reading their entries. A top file found at one of the usual addresses can still show as \`sitemap_index\`, because finding it shows its kind. A sitemap index holds only sitemap files, so reading one at a low depth with \`entries: "pages"\` returns no pages: ask with \`entries: "sitemaps"\` or a higher depth. \`depth: 1\` with \`entries: "sitemaps"\` lists the site's top sitemap files and every file they list, in one call. A listed file shows as \`sitemap\` until a map opens it, even when it is a sitemap index itself. To go deeper, read a listed file with \`sitemap_url\`, or ask with a higher depth. A large site can reach \`max_results\` or a discovery limit first; \`discovery_cap_reason\` then says which.`),
362
+ entries: z.enum(API_MAP_ENTRIES_VALUES).optional().describe("What to return: `pages` (page addresses, the default), `sitemaps` (sitemap files, of type `sitemap` or `sitemap_index`) or `all` (both)."),
363
+ modified_since: z.union([z.iso.date(), z.iso.datetime({ offset: true })]).optional().describe("Return only entries whose `lastmod` is at or after this date (`2026-11-01`, the start of that day in UTC) or date and time (ISO 8601, with a time zone). An entry with no `lastmod` is left out, so every entry returned matches; links found on the home page have none, so none is returned. Every sitemap file is read whatever its own `lastmod`, and each entry returned, a page or a sitemap file, is judged by its own `lastmod`. With `entries: \"sitemaps\"`, a sitemap file is returned when its own `lastmod` matches, not when a page in it does: to find the pages that changed, ask with `entries: \"pages\"`. A request with this field is always mapped fresh: it never reads from or adds to the cache, so `cache.max_age` does nothing, and it is priced as a fresh map."),
364
364
  page: z.number().int().positive().default(1).describe("Page number for paginated results"),
365
365
  limit: z.number().int().positive().max(MAX_API_MAP_PAGE_LIMIT).default(DEFAULT_API_MAP_PAGE_LIMIT).describe("Number of URLs to return per page. Default 5000, maximum 10000."),
366
366
  location: Schema_ApiMapLocation.optional(),
@@ -465,7 +465,7 @@ const Schema_ApiScrapeMeta = z.looseObject({
465
465
  const Schema_ApiScrapeSuccessResponse = z.looseObject({
466
466
  url: z.string().describe("The URL that was actually scraped, after any redirects, in normalized form — the base that links, images, and internal labels are computed against"),
467
467
  requested_url: z.string().describe("The URL you requested, echoed verbatim — before any redirects"),
468
- page_status_code: z.number().int().optional().describe("The HTTP status the site answered with for the final page, after redirects. Check it before you trust the content. A page the site served is a successful result whatever its status: a 404 or 503 page comes back with its content here, not as an error, so a 404 means the markdown is the site's \"not found\" page, not the page you asked for. Billing follows this status: 2xx and 4xx pages are billed, except 403, 407, 408, 429 and 451; 5xx pages are never billed. Older api versions do not send it; they only returned pages that loaded normally."),
468
+ page_status_code: z.number().int().optional().describe("The HTTP status the site answered with for the final page, after redirects. Check it before you trust the content. A page the site served is a successful result whatever its status: a 404 or 503 page comes back with its content here, not as an error, so a 404 means the markdown is the site's \"not found\" page, not the page you asked for. Billing follows this status: 2xx and 4xx pages are billed, except 403, 407, 408, 429, 444 and 451; 5xx pages are never billed. Older api versions do not send it; they only returned pages that loaded normally."),
469
469
  content_type: z.string().optional().describe("Content-Type header returned by the server"),
470
470
  unsupported_fields: z.array(z.string()).optional().describe("Extract fields that were requested but are not supported for this content type"),
471
471
  markdown: z.string().optional().describe("Page content converted to clean Markdown"),
@@ -502,10 +502,14 @@ const Schema_ApiMapUsageMeta = z.looseObject({
502
502
  engine: openEnum(["http", "cache"]).describe("The map billing engine: `http` for fresh discovery or `cache` for a cached result"),
503
503
  proxy: openEnum(API_RESOLVED_PROXY_TIER_VALUES).describe("The proxy tier the request actually ran on (resolved value — never `auto`)")
504
504
  });
505
- const API_MAP_LINK_TYPE_VALUES = ["page", "sitemap"];
505
+ const API_MAP_LINK_TYPE_VALUES = [
506
+ "page",
507
+ "sitemap",
508
+ "sitemap_index"
509
+ ];
506
510
  const Schema_ApiMapLinkItem = z.looseObject({
507
511
  url: z.string().describe("The discovered URL"),
508
- type: openEnum(API_MAP_LINK_TYPE_VALUES).optional().describe("`page` for a page address, `sitemap` for a sitemap file, which you can read with `sitemap_url` in another call (a file on another site only when the site's robots.txt names its host). A link found on the home page is a `page`."),
512
+ type: openEnum(API_MAP_LINK_TYPE_VALUES).optional().describe("`page` for a page address. `sitemap_index` for a sitemap file that this map found to be a sitemap index (a file that lists other sitemap files), whether it read all of the file, part of it, or only its start. Such a file can also be in `unread_sitemaps` when this map did not read all of it. `sitemap` for any other sitemap file: one that lists pages, or one whose kind this map did not learn (past `depth`, or it could not be read). Read a `sitemap` or `sitemap_index` file with `sitemap_url` in another call (a file on another site only when the site's robots.txt names its host). A link found on the home page is a `page`."),
509
513
  lastmod: z.string().nullable().optional().describe("The entry's `lastmod` from the sitemap, as an ISO 8601 date and time in UTC, or null when the sitemap gives none or it cannot be read. Always null for a link found on the home page.")
510
514
  });
511
515
  const Schema_ApiMapPagination = z.looseObject({
@@ -524,7 +528,7 @@ const Schema_ApiMapTruncation = z.looseObject({
524
528
  discovery_capped: z.boolean().describe("Whether sitemap discovery stopped before it had read every sitemap file it found. When true, the site has more pages than this map lists."),
525
529
  sitemaps_skipped: z.number().int().nonnegative().describe("How many sitemap files were skipped or only partly read during discovery, because a file was too large, could not be fetched, or the discovery limits were reached."),
526
530
  unread_sitemaps: z.array(z.string()).optional().describe("The sitemap files this call knew about but did not read whole, because a limit stopped it, the file could not be read, or its download broke off. Read each one with `sitemap_url` in another call, except a file that says it is over the size limit: no call reads that one. Files past `depth` are listed here. Up to 1000 addresses; empty when every file was read. When the list is full, ask the same with `entries: \"sitemaps\"` to get every sitemap file as a link. Older api versions do not send it."),
527
- discovery_cap_reason: openEnum(DISCOVERY_CAP_REASONS).nullable().describe("Which limit stopped sitemap discovery first, or null when nothing stopped it. \"max_results\": your own max_results was reached; ask again with a higher one to get more. \"depth\": there are sitemap files past the `depth` you asked for, listed in unread_sitemaps; this is the answer to the depth you chose, not a fault (with `depth: 0` it is how a site's top sitemap files are listed). \"time\": discovery ran out of its time budget. \"file_budget\": the site has more sitemap files than one request reads. \"file_size\": a sitemap file was too large. A file that says up front that it is over the size limit is not downloaded: nothing comes back from it, and it is listed in unread_sitemaps. A file of pages that turns out too large while it is read returns the links in its first part. Any other file that turns out too large, such as a sitemap index, returns nothing and is listed. \"unread_files\": a sitemap file the site publishes could not be read whole this time (the request failed or was rate limited, the download broke off, or the file was not a readable sitemap). When a download broke off, the links received before the break are returned, and the file is listed in unread_sitemaps. Asking again later can return more.")
531
+ discovery_cap_reason: openEnum(DISCOVERY_CAP_REASONS).nullable().describe("Which limit stopped sitemap discovery first, or null when nothing stopped it. \"max_results\": your own max_results was reached; ask again with a higher one to get more. \"depth\": there are sitemap files past the `depth` you asked for, listed in unread_sitemaps; this is the answer to the depth you chose, not a fault (with `depth: 0` it is how a site's top sitemap files are listed, and with `depth: 1` and `entries: \"sitemaps\"` how the top files and every file they list are listed). Read each file past it with `sitemap_url`, or ask with a higher depth. \"time\": discovery ran out of its time budget. \"file_budget\": the site has more sitemap files than one request reads. \"file_size\": a sitemap file was too large. A file that says up front that it is over the size limit is not downloaded: nothing comes back from it, and it is listed in unread_sitemaps. A file of pages that turns out too large while it is read returns the links in its first part. Any other file that turns out too large, such as a sitemap index, returns nothing and is listed. \"unread_files\": a sitemap file the site publishes could not be read whole this time (the request failed or was rate limited, the download broke off, or the file was not a readable sitemap). When a download broke off, the links received before the break are returned, and the file is listed in unread_sitemaps. Asking again later can return more.")
528
532
  });
529
533
  const Schema_ApiMapResult = z.looseObject({
530
534
  links: z.array(Schema_ApiMapLinkItem).describe("List of discovered URLs for the current page"),
@@ -539,8 +543,10 @@ const Schema_ApiMapResult = z.looseObject({
539
543
  //#region src/tools/map.ts
540
544
  const DESCRIPTION$6 = [
541
545
  "Build (or fetch a cached) link map of a website from its sitemaps, plus the links on its home",
542
- "page. Returns paginated links, each { url, type, lastmod }: `type` is `page` or `sitemap`, and",
543
- "`lastmod` is the date from the sitemap (UTC) or null. Filterable by link type (internal /",
546
+ "page. Returns paginated links, each { url, type, lastmod }: `type` is `page`, `sitemap` or",
547
+ "`sitemap_index` (a sitemap file that lists other sitemap files); read either kind of sitemap",
548
+ "file with `sitemap_url` in another call. `lastmod` is the date from the sitemap (UTC) or null.",
549
+ "Filterable by link type (internal /",
544
550
  "external / subdomain). Use this to enumerate a site before scraping selected pages.",
545
551
  "By default the map reads the site's top sitemap files and 2 levels of nested ones (`depth` 3),",
546
552
  "returns pages (`entries`) and finds up to 5000 of them (`max_results`, max 100000).",
@@ -555,17 +561,21 @@ const DESCRIPTION$6 = [
555
561
  "`discovery_capped` says discovery stopped early, `sitemaps_skipped` how many sitemap files were",
556
562
  "skipped or only partly read.",
557
563
  "`limit` (default 5000, max 10000) only pages the answer.",
558
- "To map a very large site in several calls, list its top sitemap files with `depth: 0` and",
559
- "`entries: \"sitemaps\"`, then read each one with `sitemap_url` (on the same site as `url`, or on a",
560
- "host the site's robots.txt names, such as a CDN).",
564
+ "To map a very large site in several calls, first ask with `depth: 1` and `entries: \"sitemaps\"`:",
565
+ "one call lists the top sitemap files and every file they list (a listed file shows as `sitemap`",
566
+ "until a map reads it, even when it is an index). Then read each file with `sitemap_url` (on the",
567
+ "same site as `url`, or on a host the site's robots.txt names, such as a CDN), or ask with a",
568
+ "higher `depth`.",
561
569
  "`truncation.unread_sitemaps` names the files a call did not read whole, to read next (except",
562
570
  "a file that says it is over the size limit: no call reads that one); when that",
563
571
  "list is full, ask the same with `entries: \"sitemaps\"` to get every sitemap file as a link, paged.",
564
572
  "A sitemap index holds only sitemap files, so reading one at a low `depth` with",
565
573
  "`entries: \"pages\"` returns no pages: ask with `entries: \"sitemaps\"` or a higher `depth`.",
566
574
  "`modified_since` keeps only entries whose `lastmod` is at or after it: an entry with no",
567
- "`lastmod` is left out (so no home page link is returned), and a nested sitemap with an older",
568
- "`lastmod` is not read. A request with `modified_since` is always mapped fresh, never from the",
575
+ "`lastmod` is left out (so no home page link is returned). Every sitemap file is read whatever",
576
+ "its own date, and each entry is judged by its own `lastmod`. With `entries: \"sitemaps\"` a file",
577
+ "is returned by its own date, so ask with `entries: \"pages\"` to find the pages that changed.",
578
+ "A request with `modified_since` is always mapped fresh, never from the",
569
579
  "cache, and priced as a fresh map. A map with `modified_since` or `sitemap_url` adds no home page",
570
580
  "links. If the site answers 429 on the file in `sitemap_url`, on its robots.txt or on one of",
571
581
  "its top sitemap files, the tool returns `too_many_requests` (not billed): wait and retry.",
@@ -617,7 +627,7 @@ const DESCRIPTION$5 = [
617
627
  "with for the final page. A page the site served is a successful result whatever its status, so a",
618
628
  "404 or 503 page comes back with its content, not as an error. A 404 means the markdown is the",
619
629
  "site's \"not found\" page, not the page you asked for. 2xx and 4xx pages are billed, except 403,",
620
- "407, 408, 429 and 451; 5xx pages are never billed.",
630
+ "407, 408, 429, 444 and 451; 5xx pages are never billed.",
621
631
  "If the site cannot be reached at all the tool returns a `target_unreachable` error (HTTP 502,",
622
632
  "not billed): retry later or check the URL.",
623
633
  "Set `extract.pdf: {}` to save the page as a PDF (pages or one long page, a4 or letter); it",
@@ -728,7 +738,7 @@ const DESCRIPTION$3 = [
728
738
  "with for the final page. A page the site served is a successful result whatever its status, so a",
729
739
  "404 or 503 page comes back with its content, not as an error. A 404 means the markdown is the",
730
740
  "site's \"not found\" page, not the page you asked for. 2xx and 4xx pages are billed, except 403,",
731
- "407, 408, 429 and 451; 5xx pages are never billed.",
741
+ "407, 408, 429, 444 and 451; 5xx pages are never billed.",
732
742
  "A job answers for 24 hours after it was submitted, then returns `not_found`. Screenshot and PDF",
733
743
  "URLs are signed download links that expire at the same moment, however late you fetch the",
734
744
  "result: download the file if you need it later."
@@ -822,7 +832,7 @@ function registerWhoamiTool(server, getClient) {
822
832
  //#endregion
823
833
  //#region src/version.ts
824
834
  const SERVER_NAME = "crawlbrulee";
825
- const SERVER_VERSION = "1.5.0";
835
+ const SERVER_VERSION = "1.6.0";
826
836
 
827
837
  //#endregion
828
838
  //#region src/server.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlbrulee/mcp",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "mcpName": "io.github.crawlbrulee/mcp",
5
5
  "description": "official mcp server for crawlbrulee — EU-native web scraping for AI agents & developers. native scrape and map tools for your agent.",
6
6
  "keywords": [
@@ -63,7 +63,7 @@
63
63
  "prepublishOnly": "pnpm verify"
64
64
  },
65
65
  "dependencies": {
66
- "@crawlbrulee/sdk": "^1.5.0",
66
+ "@crawlbrulee/sdk": "^1.6.0",
67
67
  "@modelcontextprotocol/sdk": "^1.32.1",
68
68
  "zod": "^4.0.0"
69
69
  },