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
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the web page to render. Required. | |
| async | No | Whether to process the request asynchronously. | |
| delay | No | Extra delay in whole seconds after page load before capturing HTML. | |
| cookies | No | Cookies to inject before navigation. Each requires name, value and domain. | |
| headers | No | Extra HTTP headers to include with the page request. | |
| timeout | No | Page-load timeout in whole seconds (positive integer). Default is 30. | |
| user_agent | No | Override the User-Agent header for the page request. | |
| wait_until | No | Page load wait condition before capturing HTML. Options: 'load', 'domcontentloaded', 'networkidle', 'commit'. Default is 'load'. | |
| bypass_cache | No | Skip cache reads and fetch a fresh page; the result can still be cached. Default false. | |
| callback_url | No | Callback URL for async processing. If provided, the task runs asynchronously and results are sent to this URL when complete. | |
| block_resources | No | Resource types to block during page load to speed up rendering. Options: 'image', 'font', 'media', 'stylesheet', 'xhr', 'fetch'. | |
| cache_ttl_seconds | No | Cache lifetime in whole seconds. Set 0 to avoid caching this response; default 3600. | |
| wait_for_selector | No | CSS selector to wait for before capturing HTML. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |