Scrape a URL asynchronously
scrape_asyncSubmit long-running scrapes asynchronously and poll the job later, so heavy JS rendering and full-page screenshots don't hold the connection open.
Instructions
Submit a scrape job to run ASYNCHRONOUSLY and return a job_id immediately, instead of holding the connection open. Use this for long-running scrapes (heavy JS rendering, full-page screenshots of long pages) — for a quick one-shot fetch prefer the synchronous scrape tool, which blocks and returns the page directly. Poll the job with scrape_status and fetch the page with scrape_result once done. Takes extract.elements like scrape (named values by CSS selector, no extra credits); the result carries them in elements. Rules: https://crawlbrulee.com/docs/scrape/targeted-extraction. Takes extract.pdf (save the page as a PDF) and extract.screenshot.color_scheme like scrape. Optionally attach a per-job completion webhook: we deliver a single signed scrape.complete POST to your endpoint when the job finishes (HTTPS required in production), and echoes your opaque webhook.metadata back in the delivery (under data.metadata, alongside data.page_status_code (on success) and data.response_meta.usage). Set zero_data_retention: true to keep the result out of the shared cache; anything stored to deliver it is kept for 24 hours, then deleted. It adds 1 credit and must be enabled for the organization (else a zero_data_retention_not_enabled error, not billed). See https://crawlbrulee.com/docs/zero-data-retention. To send your own headers or cookies to the site, set headers (for example Authorization, or a fixed User-Agent) or cookies. They go only to the site in url, and such a request never uses the cache. Header and cookie values pass through the chat with the AI, so the AI host may keep them in its history. Use short-lived tokens or a test account, and never a password you can't change. Tell the user this before they share one. See https://crawlbrulee.com/docs/scrape/custom-headers-and-cookies.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "scrape_async"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 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. | |
| cache | No | Cache settings for this request | |
| proxy | No | 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. | auto |
| cleanup | No | What is removed from the page before any output is built. Applies to markdown, cleaned_html, links and images on every engine, and to the screenshot. Never applies to raw_html, which is always the page before we removed anything. | |
| cookies | No | Your own cookies to send to the site with the request. Each is a `name` and a `value`, sent only to the host of `url`. Cookies the site sets while redirecting are not kept. Up to 20 cookies, each up to 4096 bytes (name and value), counted toward the limit on `headers`. A value may not hold ";" or start or end with a space. A `__Secure-`, `__Host-` or `__Http-` cookie needs an https url. A request with headers or cookies never reads from or writes to the cache. Header and cookie values pass through the chat with the AI, so the AI host may keep them in its history. Use short-lived tokens or a test account, and never a password you can't change. See https://crawlbrulee.com/docs/scrape/custom-headers-and-cookies. | |
| extract | No | Which content formats to extract. Defaults to markdown + metadata. | |
| headers | No | 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 16384 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. Header and cookie values pass through the chat with the AI, so the AI host may keep them in its history. Use short-lived tokens or a test account, and never a password you can't change. See https://crawlbrulee.com/docs/scrape/custom-headers-and-cookies. | |
| webhook | No | Completion webhook delivered when this async job finishes. Async-only: the synchronous `scrape` tool does not accept it. | |
| location | No | Optional locale + country emulation for the scrape | |
| require_js | No | 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. | |
| zero_data_retention | No | 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job identifier — pass it to the `scrape_status` / `scrape_result` tools |