Block resource types
block_resourcesBlock images, fonts, stylesheets, or media in the selected tab to reduce page weight and speed up scraping. Use it to cut bandwidth costs on media-heavy pages while keeping text extraction reliable.
Instructions
Block images, fonts, stylesheets or media to speed up page loads.
Removes most of the bytes on a media-heavy page, which makes scraping several times faster and far cheaper over a metered or proxied connection.
Blocking stylesheets breaks layout, so anything that depends on element
geometry becomes unreliable — click_at, element screenshots, and the
visible check in wait_for_selector. Text extraction is unaffected.
Requests are matched on the resource type Chrome reports for them, so an asset served from an extension-less URL is still blocked, and blocking one type never catches another.
Applies to ONE TAB — the selected page — and stays in effect there across navigations until called again with no types. A tab opened afterwards with new_page starts unblocked and needs its own call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | No | Resource types to block. ["image", "font", "media"] is the usual choice for scraping — it keeps stylesheets, so layout-dependent behaviour still works. Pass an empty list or omit to unblock everything. | |
| browser | No | Which browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name. | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |