# Settings

Every option a read, search or action accepts, with its default.

Every option is a field on `WebPolicy`, with a default. Nothing is hard-coded:
if a read stops, waits or skips something, an option here decides it.

- **Python**: pass `policy_overrides={...}` with only the options you mean.
- **CLI**: common options have flags; see [Command line](/docs/reference/cli/).
- **MCP**: pass them in `acquisition_policy`.

```python
await web.read(url, policy_overrides={"allow_paid_fallbacks": True, "max_cost_usd": 0.05})
```

Passing a whole `WebPolicy` instead fixes every option, which overrides a
site's route seed and returns `EXPLICIT_POLICY_CONFLICT` where they disagree.

These tables are generated from the code with `scripts/web_policy_doc.py`.

## Fetching

| Field | Default | What it does |
| --- | --- | --- |
| `freshness` | `"now"` | `now` always fetches; `hour`, `day` and `cached` may reuse a saved copy. |
| `render` | `False` | Require a browser; skips providers that cannot render. |
| `prefer_markdown` | `False` | Ask servers for `text/markdown` first (T0). |
| `sign_requests` | `True` | Sign plain HTTP reads with Web Bot Auth when a key exists (T3). |
| `timeout_seconds` | `25` | Time allowed for each provider attempt. |
| `http_timeout_seconds` | `12` | Time allowed for a plain HTTP fetch, capped by timeout_seconds. A fetch that hasn't answered by then is usually a site stalling bots. |
| `unblocker_timeout_seconds` | `90.0` | Time allowed for an unblocker attempt. |
| `agent_provider_timeout_seconds` | `300.0` | Time allowed for an agent provider such as Skyvern. |
| `max_bytes` | 40 MB | Largest response accepted. |
| `pdf_max_pages` | `50` | Most PDF pages to extract text from. Also the most pages a paid tool such as Firecrawl is asked to parse, since it bills per page. A longer PDF is cut short and says so: `structured.truncated` and `receipt.pdf`. |
| `capture_json_responses` | `False` | On rendered reads, return the JSON the page fetched for itself as `captured_json`. |
| `capture_json_max_items` | `20` | Most captured JSON responses kept. |
| `capture_json_max_bytes` | 2 MB | Largest captured JSON response kept. |
| `include_images` | `False` | Download and check the page's images. |
| `max_images` | `50` | Most images to download. |
| `card_images` | `False` | Add `cards`: each result link with its title and own thumbnail URL. |
| `include_links` | `False` | Add `links`: every link on the page (`url`, `text`), in page order, once each. |
| `max_links` | `500` | Most links `include_links` returns. |
| `accept_language` | `None` | Accept-Language for plain HTTP reads, and the browser's locale (`de-DE,de;q=0.9`). |
| `browser_actions` | `()` | Actions in the local browser before capture: wait, click, write, press, scroll, screenshot, scrape, executeJavascript ([Firecrawl-compatible API](/docs/firecrawl-compatible/#scrape-options)). Public reads only; use with `provider="local"`. |
| `screenshot_full_page` | `False` | The browser screenshot covers the whole page. |
| `markdown_output` | `False` | Add `markdown`: the page converted to markdown (headings, lists, links, tables). |
| `scroll_screens` | `0` | Screens a browser scrolls before capture so lazy content loads (3 with `card_images`). |
| `expect_terms` | `()` | Words search results should mention besides the URL query; results that mention none are flagged `off_query`. |
| `main_content` | `False` | Also return `main_text`: the article without menus, footers and banners. |
| `interactions` | `()` | Safe browser actions on browser reads: `dismiss_consent` (reject, never accept), `load_more`, `reveal`. |
| `auto_items` | `False` | Items from any listing page with no saved module, found in the page's own data; the draft module comes back too. |
| `max_image_bytes` | 20 MB | Largest image accepted. |
| `image_max_attempts` | `2` | Attempts per image. |
| `image_retry_delay_seconds` | `0.25` | Delay between image attempts. |
| `image_retry_failures` | `PROVIDER_DOWN`, `TIMEOUT` | Image failures worth another attempt. |
| `retain_public_failure_evidence` | `True` | Keep evidence of failed public reads. |

## Routing and cost

| Field | Default | What it does |
| --- | --- | --- |
| `provider` | `None` | Force one provider. Never falls back. |
| `provider_candidates` | `None` | An exact ordered list of providers. |
| `allow_local_browser` | `True` | Allow providers that run a browser on your machine. |
| `allow_paid_fallbacks` | `False` | Allow paid providers to join the route. |
| `max_cost_usd` | `None` | Cap on measured provider cost for the whole operation. |
| `strict_cost_cap` | `False` | A paid call that bills more than `max_cost_usd` still returns its valid content, and `receipt.budget` says the cap was exceeded. `True` discards it and fails with `BUDGET_EXHAUSTED`. |
| `allow_handoff` | `False` | Try `handoff` after every automatic provider fails. |
| `handoff_timeout_seconds` | `300.0` | How long a handoff waits for a person. |
| `allow_real_browser` | `False` | Let your real Chrome or Edge join automatic reads; it moves ahead once walls do. |
| `real_browser_wait_seconds` | `15.0` | How long the real browser lets a challenge clear by itself (it never clicks). |
| `use_egress_pool` | `True` | Let a walled read try your other connections (FRANKENSURF_EGRESS). |
| `egress_failures` | `BLOCKED`, `CAPTCHA`, `RATE_LIMITED` | Failures that start a pass through your other connections. |
| `egress_tools` | `camoufox`, `scrapling`, `http` | Tools a pass through another connection uses; the wall vendor's best goes first. |
| `allow_archive` | `False` | A stored copy (Internet Archive) as the very last resort; the result says when it was taken. |
| `block_private_network` | `False` | Refuse loopback, private and link-local addresses and names that resolve to them. HTTP transport checks redirects. Local Playwright contexts also check routed HTTP and WebSocket requests and block service workers, but browser redirects can bypass interception. This is defense in depth, not network isolation: browser redirects, DNS rebinding and other providers or browser transports need separate protection. Reused Steel contexts are unavailable with this guard. |
| `exclude_providers` | `()` | Skip these providers (the agent's try-harder lever). |
| `try_harder` | `False` | Order the remaining providers strongest first, paid ones included when allowed. |
| `retry_of_trace` | `None` | The trace this read retries, for the receipt. |
| `terminal_failures` | `AUTH_REQUIRED`, `AUTH_EXPIRED`, `NOT_FOUND` | Failures that stop the climb. |
| `context_stop_failures` | `AUTH_REQUIRED`, `AUTH_EXPIRED` | Failures that stop later reads of the same domain in this Runtime. |
| `auth_wall_confirmations` | `5` | Providers in a row that must hit a sign-in wall before a public read stops. |
| `fake_wall_confirmers` | `jina_reader`, `camoufox`, `firecrawl`, `zyte`, `scrapling`, `zenrows` | Providers that go next after a suspected fake wall, in this order. |
| `escalate_after_walls` | `4` | Walls in one read before paid providers move ahead, and failed tries of any kind before free tools that fetch from their own network do; 0 turns both off. |
| `paid_after_walls` | `1` | Walls before allowed paid tools move ahead, cheapest likely success first (one more when a free tool usually beats that wall vendor); 0 leaves them to escalate_after_walls. |
| `escalation_failures` | `BLOCKED`, `CAPTCHA` | Failures that count as walls. |
| `use_route_memory` | `True` | Let route memory reorder providers. |
| `use_wall_priors` | `True` | Start wall-vendor routing from measured priors on a fresh install; your own reads outweigh them. |
| `skip_hopeless_tools` | `True` | After walls, stop once only tools that have never got past this wall vendor are left, instead of trying them. They stay in if_not_right for a deliberate retry. |
| `route_memory_ttl_seconds` | `3600` | How far back route memory looks. |
| `route_memory_min_samples` | `3` | Clean reads in a row before a provider is promoted. |
| `origin_route_hint_ttl_seconds` | `86400.0` | How long a site hint lasts. |
| `provider_max_attempts_per_candidate` | `2` | Attempts per provider. Paid and capped reads are never retried. |
| `provider_retry_delay_seconds` | `1.0` | Delay between attempts. |
| `provider_retry_failures` | `PROVIDER_DOWN` | Failures worth another attempt. |
| `provider_deadline_grace_seconds` | `10` | Extra time an isolated worker gets past `timeout_seconds`. |
| `provider_cleanup_grace_seconds` | `5` | Time allowed to close a provider's process tree. |
| `provider_composition_max_depth` | `8` | Deepest nesting when one provider calls another. |
| `provider_composition_max_attempts` | `64` | Most nested provider attempts in one operation. |
| `compound_source_candidates` | `http`, `camoufox`, `scrapling` | Validated provider list reserved for compound routes; not used by the default route. |

## Completeness and walls

| Field | Default | What it does |
| --- | --- | --- |
| `completeness_escalation` | `True` | Check each automatic read's structure and re-read an incomplete page along the ladder. |
| `completeness_ladder` | `jina_reader`, `scrapling`, `camoufox`, `firecrawl`, `zyte`, `zenrows`, `scrapfly`, `brightdata_unlocker` | Providers an incomplete page is re-read with, in order (paid ones only when allowed). |
| `completeness_max_extra_reads` | `5` | Most extra reads one escalation makes. |
| `completeness_parallel` | `2` | Free ladder tools raced at once (up to 4); paid tools always run alone. |
| `completeness_stop_on_agreement` | `True` | Stop climbing once two browsers read the same page as the first read. |
| `completeness_stop_without_progress` | `True` | After a round of free tools that reads pages but none complete, skip the other free tools (paid ones still run). |
| `completeness_borderline_items` | `20` | A search page that passes with fewer item links (and few prices) gets one more read. |
| `completeness_settle_ms` | `5000` | Minimum settle time for escalation reads. |
| `completeness_deadline_seconds` | `150.0` | Time allowed for the whole escalation; a tool still running then is cut off. |
| `completeness_step_timeout_seconds` | `45.0` | Once a read holds a page, time each extra tool gets to complete it before it is cut off. |
| `hedge_after_seconds` | `2.0` | After this long without a page, a read is raced by hedge_racers free tools (smart lightning); 0 turns it off. |
| `hedge_racers` | `2` | Free tools that race a read with no page after hedge_after_seconds (smart lightning), 1 to 3. |
| `lightning` | `False` | Start the read and two other free tools at once and keep the first complete page; escalation races four. |
| `rescue_not_found` | `True` | After NOT_FOUND, search the site itself for what the URL asked for and return the results when they mention it (receipt.rescued). |
| `interact_on_escalation` | `True` | Pages that need a choice or show only a consent notice get one local-browser read with the safe actions first. |
| `warm_up_on_wall` | `True` | A public read that ends at a wall gets one more try through the site's home page. |
| `site_session_hours` | `24.0` | Hours the local browser keeps each site's cookies; 0 turns it off. |

## Pacing

| Field | Default | What it does |
| --- | --- | --- |
| `origin_min_interval_seconds` | `2.0` | Minimum gap between reads of one origin. |
| `origin_cooldown_seconds` | `900.0` | Pause after a wall. |
| `origin_cooldown_failures` | `BLOCKED`, `CAPTCHA`, `RATE_LIMITED` | Failures that start a cool-down. |

## Rendering and content checks

| Field | Default | What it does |
| --- | --- | --- |
| `wait_selector` | `None` | Wait for this CSS selector before capture. |
| `wait_state` | `"attached"` | `attached` or `visible`, for `wait_selector`. |
| `content_ready_selector` | `None` | Preferred ready selector; on timeout the current page is captured. |
| `content_ready_timeout_seconds` | `10` | How long to wait for `content_ready_selector`. |
| `settle_ms` | `400` | Extra wait after the page is ready. |
| `public_browser_headless` | `True` | Run public browsers headless. |
| `html_shell_min_text_chars` | `200` | A plain-HTTP page with scripts and less text than this is treated as an app shell. |
| `html_shell_large_bytes` | `250000` | A page at least this large ... |
| `html_shell_large_min_text_chars` | `1000` | ... with less text than this is also an app shell. |
| `rendered_min_text_chars` | `50` | A rendered page with less text than this is `EMPTY_PAGE`. |
| `second_opinion_text_chars` | `5000` | Below this much text, a plain HTTP page with scripts is also rendered and the fuller page kept; 0 turns it off. |
| `navigation_page` | `1` | Page 1 to 3 through a site's own Next navigation (seeded routes only). |
| `public_entry_url` | `None` | Entry page a `camoufox_entry` route visits first. |
| `public_entry_continue_failures` | `BLOCKED` | Entry-page failures that still continue to the target. |
| `scrapling_navigation_wait_until` | `None` | Navigation wait condition for Scrapling and entry-page routes. |
| `scrapling_solve_cloudflare` | `False` | Let Scrapling attempt Cloudflare's interstitial. |
| `scrapling_load_dom` | `True` | Wait for Scrapling's DOM load. |
| `scrapling_google_search` | `False` | Scrapling's Google referrer option. |

## Search and paging

| Field | Default | What it does |
| --- | --- | --- |
| `search_source_candidates` | `None` | An exact ordered list of search sources. |
| `search_source_allow` | `None` | Only these sources may run. |
| `search_source_prefer` | `()` | Move these sources to the front. |
| `search_max_attempts` | `None` | Most sources to try. |
| `search_source_timeout_seconds` | `8` | Time per source; `None` uses the operation timeout. |
| `search_terminal_failures` | `BUDGET_EXHAUSTED` | Failures that stop search fallback. Add `POLICY_DENIED` to stop when any individual source is denied. |
| `search_merge_sources` | `4` | Sources asked at once by `search(mode="merge")`. |
| `search_ladder` | `True` | An automatic search climbs sources until a result set passes the checks (on the query, inside the date window, real pages, deduplicated), carrying passing results up; false keeps the first answer. |
| `search_good_results` | `3` | Passing results that make a set good (or the limit, if lower). |
| `search_date_reads` | `6` | A windowed automatic search (`recency`) reads up to this many undated results' pages per source's result set (twice as many per search) over plain http, with no paid tool, to find their publication date; results provably outside the window drop out, and ones still undated count for at most half of `search_good_results`. 0 turns it off. |
| `search_date_read_timeout_seconds` | `5.0` | Time one such date read gets, in seconds. |
| `search_hold_undated` | `True` | In a windowed automatic search, results whose publication date could not be verified are left out of `results` whenever any verified in-window results exist, and returned apart as `unverified_results`. False mixes them in, ranked after the verified ones. |
| `search_fill_rungs` | `2` | In a windowed automatic search, once the answer is good, up to this many more free sources are asked while it holds fewer verified in-window results than the limit, and what passes is merged in. Without a window, one more free source is asked when local SearXNG is reachable and the answer holds fewer passing results than the limit. Never a paid or last-resort source. 0 turns it off. |
| `search_hedge_after_seconds` | `3.0` | After this long without an answer, the next free search source starts beside the current one; 0 turns it off. |
| `search_hedge_racers` | `2` | Search sources running at once while racing, 1 to 3. Paid sources never race. |
| `search_max_seconds` | `30.0` | Ceiling for one whole search, in seconds. |
| `search_max_sources` | `6` | Ceiling on search sources started in one search. |
| `search_paid_after_weak` | `2` | Weak or empty free sources before allowed paid search sources join, cheapest likely success first; 0 leaves them until every free source has been tried. |
| `search_paid_parallel` | `True` | With `allow_paid_fallbacks`, an automatic search starts the cheapest likely-success paid search source beside the first free rung instead of after the free ones fail, whatever the kind of query. Everything is merged, checked and ranked, and a paid result that fails the checks gives way to a passing free one. The cost cap applies. False keeps paid sources behind the free rungs. |
| `search_paid_wait_seconds` | `10.0` | When the free sources make the answer good while the parallel paid source is still running, wait this many seconds for it, so the answer can be anchored on it. If it does not answer in time, the free answer stands, `search_ladder.anchor` is null with the note `paid_timeout`, and the cancelled call is costed at its bundled price per search (marked estimated). 0 does not wait. |
| `search_learned_routing` | `True` | Try first the source that most often passed the checks for this kind of query (vertical, recency, site filter). |
| `search_exclude_operators` | `3` | Most -site: operators sent to an engine; the whole exclude list is enforced on the results either way. |
| `max_pages` | `2` | Most pages `paginate` follows. |

## Browser agent

| Field | Default | What it does |
| --- | --- | --- |
| `browser_agent_max_steps` | `40` | Most agent steps. |
| `browser_agent_max_model_calls` | `40` | Most model calls. |
| `browser_agent_max_actions` | `80` | Most actions overall. |
| `browser_agent_max_actions_per_step` | `3` | Most actions per step. |
| `browser_agent_max_failures` | `3` | Failures before the agent stops. |
| `browser_agent_allowed_actions` | `navigate_public`, `inspect_page`, `follow_link`, `click_element`, `search_site`, `wait_readiness`, `scroll_page`, `done` | Actions the agent may take. |
| `browser_agent_allowed_origins` | `None` | Origins the agent may visit; defaults to the target's. |
| `browser_agent_entry_url` | `None` | Where the agent starts, if not the target URL. |
| `browser_agent_task` | `None` | A task for the Browser Use agent. |
| `browser_agent_llm_timeout_seconds` | `20` | Time per model call. |
| `browser_agent_step_timeout_seconds` | `30` | Time per step. |
| `browser_agent_action_timeout_seconds` | `10` | Time per action. |
| `browser_agent_readiness_poll_ms` | `100` | Readiness polling interval. |
| `browser_agent_packet_max_bytes` | 48 MB | Largest agent result packet. |
| `browser_agent_use_vision` | `False` | Send screenshots to the model. |

## Identity and actions

| Field | Default | What it does |
| --- | --- | --- |
| `identity` | `None` | Read as a registered identity. |
| `profile` | `None` | Read as a stored FrankenSurf profile; exclusive with `identity`. |
| `action_classes` | `READ_PUBLIC`, `READ_AUTHENTICATED` | Action classes this operation grants. |
| `browser_do_allowed_tools` | `fill`, `click`, `wait_for`, `assert_text`, `assert_value` | Browser tools `do` may use. |
| `browser_do_allowed_contracts` | `local_fixture.reversible_draft.v1` | Action contracts `do` may run. |
| `browser_do_allowed_origins` | `None` | Exact origins `do` may act on. |
| `browser_do_max_actions` | `20` | Most actions in one intent. |
| `browser_do_action_timeout_seconds` | `10` | Time per action. |
| `browser_do_settle_ms` | `200` | Wait after each action. |
| `browser_do_packet_max_bytes` | 48 MB | Largest action intent. |
| `browser_do_journal_max_bytes` | 16 MB | Largest action journal. |
| `browser_do_selector_max_bytes` | `4096` | Longest selector. |
| `browser_do_value_max_bytes` | 1 MB | Largest field value. |
| `browser_do_description_max_bytes` | `8192` | Longest action description. |
| `browser_do_idempotency_key_max_bytes` | `256` | Longest idempotency key. |
| `browser_do_require_auth_check` | `True` | Require the identity's signed-in check before acting. |

## Repair

| Field | Default | What it does |
| --- | --- | --- |
| `workload_assertion_max_count` | `32` | Most assertions on one extract (for repair). |
| `workload_assertion_max_bytes` | `65536` | Largest assertion set. |
| `repair_overlay_registry_max_bytes` | 4 MB | Largest repair overlay registry. |
