Skip to main content
Glama
mcp-webextrator

mcp-webextrator

by AceDataCloud

webextrator_render

Render JavaScript-heavy web pages in a headless browser and return the fully rendered HTML, so you can inspect dynamic DOM or single-page application content.

Instructions

Render a web page and return the fully rendered HTML.

Uses a headless browser to navigate to the specified URL, waits for JavaScript
to execute, and returns the final rendered HTML source.

Use this when:
- You need the fully rendered HTML of a JavaScript-heavy page
- You want to inspect the DOM after dynamic content has loaded
- You need to capture single-page application (SPA) content

Returns:
    By default, the rendered HTML content inline. With async=true, a JSON
    envelope with a `task_id` — poll `webextrator_get_task` until it reports
    `finished_at`, then read the rendered HTML from its `response`.

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": "webextrator_render"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL of the web page to render. Required.
asyncNoWhether to process the request asynchronously.
delayNoExtra delay in whole seconds after page load before capturing HTML.
cookiesNoCookies to inject before navigation. Each requires name, value and domain.
headersNoExtra HTTP headers to include with the page request.
timeoutNoPage-load timeout in whole seconds (positive integer). Default is 30.
user_agentNoOverride the User-Agent header for the page request.
wait_untilNoPage load wait condition before capturing HTML. Options: 'load', 'domcontentloaded', 'networkidle', 'commit'. Default is 'load'.
bypass_cacheNoSkip cache reads and fetch a fresh page; the result can still be cached. Default false.
callback_urlNoCallback URL for async processing. If provided, the task runs asynchronously and results are sent to this URL when complete.
block_resourcesNoResource types to block during page load to speed up rendering. Options: 'image', 'font', 'media', 'stylesheet', 'xhr', 'fetch'.
cache_ttl_secondsNoCache lifetime in whole seconds. Set 0 to avoid caching this response; default 3600.
wait_for_selectorNoCSS selector to wait for before capturing HTML.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.1.12
    • addedInput schema / $defs
      Added value: +{
      +  "Cookie": {
      +    "description": "Cookie to inject before navigating the requested page.",
      +    "properties": {
      +      "domain": {
      +        "title": "Domain",
      +        "type": "string"
      +      },
      +      "expires": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Expires"
      +      },
      +      "httpOnly": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Httponly"
      +      },
      +      "name": {
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "path": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Path"
      +      },
      +      "sameSite": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "Strict",
      +              "Lax",
      +              "None"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Samesite"
      +      },
      +      "secure": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Secure"
      +      },
      +      "value": {
      +        "title": "Value",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "value",
      +      "domain"
      +    ],
      +    "title": "Cookie",
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / bypass_cache
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Skip cache reads and fetch a fresh page; the result can still be cached. Default false.",
      +  "title": "Bypass Cache"
      +}
    • addedInput schema / properties / cache_ttl_seconds
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Cache lifetime in whole seconds. Set 0 to avoid caching this response; default 3600.",
      +  "title": "Cache Ttl Seconds"
      +}
    • addedInput schema / properties / cookies
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "$ref": "#/$defs/Cookie"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Cookies to inject before navigation. Each requires name, value and domain.",
      +  "title": "Cookies"
      +}
    • changedInput schema / properties / delay / anyOf
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / delay / description
      Previous value: -"Extra delay in seconds after page load before capturing HTML."New value: +"Extra delay in whole seconds after page load before capturing HTML."
    • changedInput schema / properties / timeout / anyOf
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / timeout / description
      Previous value: -"Total timeout in seconds for page load. Default is 30."New value: +"Page-load timeout in whole seconds (positive integer). Default is 30."
    • changedInput schema / properties / wait_until / description
      Previous value: -"Page load wait condition before capturing HTML. Options: 'load', 'domcontentloaded', 'networkidle', 'commit'. Default is 'networkidle'."New value: +"Page load wait condition before capturing HTML. Options: 'load', 'domcontentloaded', 'networkidle', 'commit'. Default is 'load'."
  2. Changed5 schema fields changedv0.1.7
    • addedInput schema / properties / async
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Whether to process the request asynchronously.",
      +  "title": "Async"
      +}
    • removedInput schema / properties / bypass_cache
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Skip the Redis result cache for this request (still writes the fresh result back). Default is false.",
      -  "title": "Bypass Cache"
      -}
    • removedInput schema / properties / cache_ttl_seconds
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Override the global cache TTL (seconds) for this entry. 0 means do not cache this response. Default is 3600.",
      -  "title": "Cache Ttl Seconds"
      -}
    • removedInput schema / properties / cookies
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "items": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Cookies to install before navigation. Each cookie is an object with at least 'name' and 'value', plus optional 'domain', 'path', 'expires', 'httpOnly', 'secure', 'sameSite'. Useful for authenticated pages.",
      -  "title": "Cookies"
      -}
    • removedInput schema / properties / mode
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "enum": [
      -        "sync",
      -        "async"
      -      ],
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Processing mode. Defaults to API sync behavior. Pass 'async' to return immediately with a task_id to poll via webextrator_get_task.",
      -  "title": "Mode"
      -}
  3. Changed1 schema field changedv0.1.5
    • changedInput schema / properties / mode / description
      Previous value: -"Processing mode. Defaults to 'async': returns immediately with a task_id to poll via webextrator_get_task. Pass 'sync' to wait for the result inline (may time out on slow pages)."New value: +"Processing mode. Defaults to API sync behavior. Pass 'async' to return immediately with a task_id to poll via webextrator_get_task."
  4. Changed1 schema field changedv0.1.3
    • changedInput schema / properties / mode / description
      Previous value: -"Processing mode. 'sync' (default) waits for the result; 'async' returns immediately with a task_id to poll via the Tasks API."New value: +"Processing mode. Defaults to 'async': returns immediately with a task_id to poll via webextrator_get_task. Pass 'sync' to wait for the result inline (may time out on slow pages)."
  5. Changed4 schema fields changedv0.1.2
    • addedInput schema / properties / bypass_cache
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Skip the Redis result cache for this request (still writes the fresh result back). Default is false.",
      +  "title": "Bypass Cache"
      +}
    • addedInput schema / properties / cache_ttl_seconds
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Override the global cache TTL (seconds) for this entry. 0 means do not cache this response. Default is 3600.",
      +  "title": "Cache Ttl Seconds"
      +}
    • addedInput schema / properties / cookies
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Cookies to install before navigation. Each cookie is an object with at least 'name' and 'value', plus optional 'domain', 'path', 'expires', 'httpOnly', 'secure', 'sameSite'. Useful for authenticated pages.",
      +  "title": "Cookies"
      +}
    • addedInput schema / properties / mode
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "sync",
      +        "async"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Processing mode. 'sync' (default) waits for the result; 'async' returns immediately with a task_id to poll via the Tasks API.",
      +  "title": "Mode"
      +}
  6. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose the headless-browser mechanism, JS execution wait, and the dual return modes (inline HTML vs async envelope + polling). It says nothing about cost/latency of rendering, rate limits, failure or timeout behavior, or whether it retries — all material for a network-fetching tool. Solid on mechanics, thin on operational characteristics.

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

Conciseness4/5

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

Purpose is front-loaded in the first sentence, followed by mechanism, then use cases, then returns — a clean, scannable ordering with bullets carrying the conditional logic. There is mild redundancy between the opening line and the second sentence (both say it returns the rendered HTML), but the second adds mechanism, so it mostly earns its place.

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 13-parameter rendering tool, the description covers what it does, when to pick it, and both output modes including the async polling handoff; an output schema exists so return values need not be detailed. What is missing relative to the tool's complexity is operational guidance — expected latency, failure/timeout handling, and any usage limits.

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

Parameters4/5

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

Schema description coverage is 100%, so a 3 is the baseline, and the description earns an extra point by giving the one piece of semantics the schema lacks: what async=true actually produces ('a JSON envelope with a task_id') and the exact follow-up workflow. The other 12 parameters (delay, wait_until, block_resources, cache_ttl_seconds, etc.) are documented in the schema but not elaborated here.

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 and resource ('Render a web page') plus the exact artifact produced ('fully rendered HTML'), and the mechanism ('headless browser ... waits for JavaScript to execute') separates it from a plain fetch or from webextrator_extract. The three 'Use this when' bullets further pin the tool to JS-heavy/SPA/DOM-inspection scenarios an agent can match against a request.

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

Usage Guidelines4/5

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

Explicit positive conditions for use are given as a bulleted list, and the async path routes the agent to the correct sibling ('poll webextrator_get_task until it reports finished_at'). It does not name when NOT to use this, nor point to webextrator_extract as the alternative for structured data, so selection against that sibling is left implicit.

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