Skip to main content
Glama

browserless_smartscraper

Read-only

Scrape a single webpage and extract HTML, markdown, text, links, screenshots, or PDFs with metadata. Handles JavaScript-heavy pages and anti-bot measures automatically.

Instructions

Scrape a SINGLE webpage and return HTML, markdown, raw DOM text, links, screenshots, or PDFs plus page metadata. Handles JavaScript-heavy pages and anti-bot measures automatically. For content across MULTIPLE pages of a site, use browserless_crawl; to list a site's URLs, use browserless_map.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to scrape (must be http or https)
_promptNoThe end user's original, verbatim request that led to this tool call, if known. Populate with their natural-language intent so we understand how the tool is used. Do NOT include secrets, passwords, API keys, tokens, or other credentials. Omit if unavailable.
formatsNoOutput formats to include: "markdown", "html", "rawText", "screenshot", "pdf", "links". PDFs are saved outside the conversation and returned as a local path (stdio) or a single-use download URL (HTTP). rawText is DOM text with script, style, and noscript elements removed and whitespace collapsed, or extracted text for PDF targets. Defaults to ["markdown"].
headersNoCustom HTTP headers sent to the target site. host, authorization, proxy-authorization, cookie, set-cookie, x-forwarded-for, x-real-ip, and forwarded are removed by the API.
profileNoOptional name of an authentication profile to hydrate into the browser before scraping. The profile's cookies, localStorage, and IndexedDB are restored into the session before the request runs. The profile must already exist for the API token in use — create one with Browserless.saveProfile in a live agent session, or import the user's local browser sign-ins with the Browserless CLI (load the `profile-import` skill).
timeoutNoRequest timeout in milliseconds
waitForNoMilliseconds to wait after page load, from 0 to 30000. A positive value forces browser rendering.
excludeTagsNoUp to 100 CSS selectors to remove from HTML webpage outputs. Malformed selectors are ignored. Cannot be combined with includeTags.
includeTagsNoUp to 100 CSS selectors to keep in HTML webpage outputs. Malformed entries are ignored; if no selector matches, the scraper returns unfiltered content. Cannot be combined with excludeTags or onlyMainContent.
onlyMainContentNoFor HTML webpages, remove nav, footer, aside, role=navigation, script, style, and noscript elements from DOM-derived outputs. Parsed JSON and PDF content are unchanged. Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.39.0
    • changedInput schema / properties / profile / description
      Previous value: -"Optional name of an authentication profile to hydrate into the browser before scraping. The profile's cookies, localStorage, and IndexedDB are restored into the session before the request runs. The profile must already exist for the API token in use — create one with Browserless.saveProfile in a live agent session first."New value: +"Optional name of an authentication profile to hydrate into the browser before scraping. The profile's cookies, localStorage, and IndexedDB are restored into the session before the request runs. The profile must already exist for the API token in use — create one with Browserless.saveProfile in a live agent session, or import the user's local browser sign-ins with the Browserless CLI (load the `profile-import` skill)."
  2. Changed1 schema field changedv1.38.0
    • changedInput schema / properties / formats / description
      Previous value: -"Output formats to include: \"markdown\", \"html\", \"rawText\", \"screenshot\", \"pdf\", \"links\". rawText is DOM text with script, style, and noscript elements removed and whitespace collapsed, or extracted text for PDF targets. Defaults to [\"markdown\"]."New value: +"Output formats to include: \"markdown\", \"html\", \"rawText\", \"screenshot\", \"pdf\", \"links\". PDFs are saved outside the conversation and returned as a local path (stdio) or a single-use download URL (HTTP). rawText is DOM text with script, style, and noscript elements removed and whitespace collapsed, or extracted text for PDF targets. Defaults to [\"markdown\"]."
  3. Changed1 schema field changedv1.34.0
    • changedInput schema / properties / headers / additionalProperties
      Previous value: -falseNew value: +{
      +  "type": "string"
      +}
  4. Changed8 schema fields changedv1.28.1
    • addedInput schema / properties / excludeTags
      Added value: +{
      +  "description": "Up to 100 CSS selectors to remove from HTML webpage outputs. Malformed selectors are ignored. Cannot be combined with includeTags.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 100,
      +  "type": "array"
      +}
    • changedInput schema / properties / formats / description
      Previous value: -"Output formats to include: \"markdown\", \"html\", \"screenshot\", \"pdf\", \"links\". Defaults to [\"markdown\"]."New value: +"Output formats to include: \"markdown\", \"html\", \"rawText\", \"screenshot\", \"pdf\", \"links\". rawText is DOM text with script, style, and noscript elements removed and whitespace collapsed, or extracted text for PDF targets. Defaults to [\"markdown\"]."
    • changedInput schema / properties / formats / items / enum
      Previous value: -[
      -  "markdown",
      -  "html",
      -  "screenshot",
      -  "pdf",
      -  "links"
      -]New value: +[
      +  "markdown",
      +  "html",
      +  "rawText",
      +  "screenshot",
      +  "pdf",
      +  "links"
      +]
    • addedInput schema / properties / formats / minItems
      Added value: +1
    • addedInput schema / properties / headers
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Custom HTTP headers sent to the target site. host, authorization, proxy-authorization, cookie, set-cookie, x-forwarded-for, x-real-ip, and forwarded are removed by the API.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / includeTags
      Added value: +{
      +  "description": "Up to 100 CSS selectors to keep in HTML webpage outputs. Malformed entries are ignored; if no selector matches, the scraper returns unfiltered content. Cannot be combined with excludeTags or onlyMainContent.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 100,
      +  "type": "array"
      +}
    • addedInput schema / properties / onlyMainContent
      Added value: +{
      +  "default": false,
      +  "description": "For HTML webpages, remove nav, footer, aside, role=navigation, script, style, and noscript elements from DOM-derived outputs. Parsed JSON and PDF content are unchanged. Defaults to false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / waitFor
      Added value: +{
      +  "description": "Milliseconds to wait after page load, from 0 to 30000. A positive value forces browser rendering.",
      +  "maximum": 30000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  5. First observedv1.16.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds a genuine behavioral trait beyond that: JavaScript-heavy pages and anti-bot measures are handled automatically, which tells the agent it need not pre-render or work around bot protection itself. It stops short of rate limits, timeouts, or failure behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: capability, behavioral note, then routing alternatives. Zero filler and the most decision-relevant information (single vs. multi-page) is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter, nested-object tool with no output schema, the description gives enough for correct selection and covers the rough shape of the return (formats plus metadata) while the schema carries the parameter detail. A note on cost, timeout behavior, or failure modes would close the remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter is already documented in the schema and the baseline is 3. The description's format list echoes the formats enum rather than adding syntax or interaction detail (e.g. how formats combine), so it does not materially exceed the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Scrape a SINGLE webpage') and enumerates the concrete outputs it can return (HTML, markdown, rawText, links, screenshots, PDFs, metadata). It also distinguishes itself from browserless_crawl and browserless_map by name, so an agent can route without opening another schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states the selection conditions: single page here, MULTIPLE pages via browserless_crawl, URL enumeration via browserless_map. This is exactly the when/when-not/alternative structure the dimension asks for; only the exclusion of other siblings like browserless_search is missing, which is minor.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.