AI agent instructions
AI agent instructions
client.scrape(): the global scrape request minus url, plus the SDK-only scrape options.
Fields
Save session replay. False permanently disables saved replay; Live View remains available.
Save browser session logs. False permanently disables saved logs, without disabling metering.
Idle timeout in minutes. Session closes after this period of inactivity (resets on each operation).
List of custom proxies to use for the session. If True, the default proxies will be used.
The browser type to use. Supported values are chromium and chrome. chrome-nightly and chrome-turbo are legacy aliases for chrome.
Managed Auth connection IDs to verify and, when necessary, authenticate inside this session before it is returned.
Additional instructions to use for the scrape. E.g. ‘Extract only the title, date and content of the articles.’
Whether to only scrape the main content of the page. If True, navbars, footers, etc. are excluded.
Playwright selector to scope the scrape to. Only content inside this selector will be scraped.
Model used for structured extraction. Canonical OpenRouter ids: google/gemini-3.5-flash, google/gemini-3.5-flash-lite, google/gemini-3.1-flash-lite, google/gemini-3.1-flash-lite-preview, google/gemini-2.5-flash, openai/gpt-4.1-mini, openai/gpt-4o, google/gemma-3-27b-it, openai/gpt-oss-120b, perplexity/sonar-pro, deepseek/deepseek-r1, meta-llama/llama-3.3-70b-instruct, anthropic/claude-sonnet-4-5, anthropic/claude-haiku-4-5, moonshotai/kimi-k2.5, x-ai/grok-4.3, minimax/minimax-m2.5. Reviewed legacy LiteLLM ids remain accepted. Defaults to google/gemini-3.5-flash.
Whether to use link/image placeholders to reduce the number of tokens in the prompt and hallucinations. However this is an experimental feature and might not work as expected.
Viewport shape preset. When set, the backend fits the largest rectangle of this aspect ratio inside the sampled available screen area. Cannot be combined with explicit viewport_width/viewport_height.
Block ads and trackers in managed browsers using Basic filtering. Set false to disable. Does not configure externally supplied CDP browsers.
Who answers JavaScript dialogs (alert, confirm, prompt, beforeunload).
auto (default): Notte answers them, dismissing alert, confirm and prompt and accepting beforeunload. client: Notte leaves them for your CDP client to accept or dismiss, and dismisses one nobody answers within 10 seconds.Enable Notte’s highest-fidelity browser environment for sites with sophisticated bot detection. Available to approved workspaces.
The operating system the session’s browser presents: windows or macos. When unset, each session gets one at random among those the environment offers.
Ignored since notte 1.10: screenshots are returned without highlighting.deprecated:
A Zod schema or a JSON Schema object describing the data to extract.
JSON Schema to send instead of converting
response_format. Only used with a Zod schema.When true (default) a failed structured extraction throws
ScrapeFailedError
and the extracted data is returned directly. When false the StructuredData
wrapper is returned so callers can inspect .success.Whether to wait for Managed Auth before the scrape request completes. Defaults to true. Authentication failure or timeout can fail the scrape request.