Skip to main content
Glama

Zyte MCP Server

extract_from_browser

Extract structured data from a web page using Zyte API automatic (AI) extraction, fetching the page with a browser: give it a URL and an extraction type, get typed JSON back (product, article, job posting, ...). Highest quality and the default choice; the only extract tool with browser actions and viewport. Omit extractFrom to let Zyte API choose the browser source (currently 'browserHtml'); 'browserHtmlOnly' skips screenshot signals. For server-rendered pages extract_from_http is faster and cheaper. Choose the type by page kind — detail types for a single entity's page, list types for per-item summaries from one page, navigation types when crawling, pageContent as the generic fallback, webPageInfo for language only. One type per call. product, article, jobPosting and pageContent results carry metadata.probability — the confidence the page matches the type (below ~0.5 means it might not; a signal, not an error). If unsure between two of those types, make one call per type and keep the higher-probability result; list/navigation/forumThread results have no page-level probability. customAttributes adds caller-defined LLM-extracted fields on top of the requested type; for custom attributes alone use type "pageContent". Supports sessions, cookies, geolocation, and IP type. For raw pages (HTML, screenshots, files) use fetch_page or fetch_http instead. Returns a JSON metadata block (final URL, target HTTP status, optional action results/session), then one JSON block with the extracted data keyed by type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesAbsolute http(s) URL of the page to extract from (max 8192 chars). The host must be a domain name, not an IP address.
typeYesThe extraction type to run — one per call. Detail types (product, article, jobPosting, forumThread) suit a page about a single entity; list types (productList, articleList) return per-item summaries from a listing page; navigation types (productNavigation, articleNavigation, jobPostingNavigation) return item/next-page links for crawling; pageContent separates main content from site boilerplate on any page; webPageInfo returns the page language.
ipTypeNoType of IP address to send the request from. Default: Zyte API picks the type that avoids bans for the target site.
actionsNoBrowser actions executed after the page loads and before extraction: click, type, scrollBottom, waitForSelector, evaluate, etc. Per-action results are returned in the metadata block. See the Zyte API actions reference (https://docs.zyte.com/zyte-api/usage/reference.html) for behavior details.
viewportNoBrowser viewport size; changes what the extractor sees.
sessionIdNoClient-managed session ID — a version 4 UUID you generate. Requests with the same ID reuse the same session (IP, cookies). Sessions expire 15 minutes after creation, after 2 idle minutes, or after 3 bans.
extractFromNoWhich browser source the extractor reads. 'browserHtml': rendered HTML plus screenshot signals, highest quality but less robust to rendering issues. 'browserHtmlOnly': rendered HTML without screenshot signals. Omit the field entirely to let Zyte API choose (currently 'browserHtml'). For a raw HTTP fetch use extract_from_http.
geolocationNoISO 3166-1 alpha-2 country code to route the request from (e.g. 'US', 'DE'); must be a real country code. Default: Zyte API picks a geolocation that avoids bans and locale surprises for the target site.
organizationIdYesRequired. The Zyte organization to attribute this call to (max 100 characters, printable ASCII without spaces). If you do not already have an id, call the user_info tool: it lists the organizations your credential belongs to. IMPORTANT: if it lists more than one, ask the user which to use and wait for their answer — this call is billed to whichever organization you name here, so it is the user's choice to make, not yours. Never guess an id, and never fall back to a default. Once the user has chosen, reuse that id across the session unless they ask for a different organization.
requestCookiesNoCookies to send with the request (max 100). The responseCookies output of a previous fetch_page/fetch_http call can be passed here verbatim.
sessionContextNoServer-managed session context: up to 10 name/value pairs. Zyte API reuses or creates a session per distinct context. Sessions expire after 4 hours or 3 bans.
enableZeroTraceNoKeep the URL and other potentially sensitive request data out of Zyte API's request logs, metrics and stats records for this request. Default false. Use it for sensitive targets; it also leaves Zyte support less to go on when investigating the request.
cookieManagementNoHow cookies are handled: 'auto' (default) uses requestCookies if given, otherwise Zyte API's automatic cookies; 'discard' uses requestCookies if given, otherwise no cookies.
customAttributesNoAd-hoc fields extracted by a Zyte-operated LLM on top of the requested type (max 20 attributes): attribute name to attribute schema. The requested type scopes the page region fed to the LLM. If you only want custom attributes, use type "pageContent".
sessionContextActionsNoBrowser actions run once to initialize a server-managed session for the given sessionContext (e.g. login steps).

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the extractFrom default behavior ('browserHtml' when omitted), that probability is a signal not an error, session/cookie/geolocation/IP support, and the two-block return shape. It stops short of billing/permission behavior (organizationId billing is documented in the schema, not here) and any rate-limit or failure-mode context.

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?

Front-loaded with the core purpose and mechanism in the first clause, and most sentences carry distinct, non-redundant information. It is, however, a dense block of text where the type-selection, probability, and alternative-routing guidance are all packed together, making it heavier reading than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter tool with nested action definitions and no output schema, the description covers the return structure (metadata block with final URL/status/action results, then a data block keyed by type), the extraction-type taxonomy, and the primary capability differentiators. An agent has enough to select and invoke it correctly.

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 coverage is 100%, so the baseline is 3, and the description still adds meaning: it explains what omitting extractFrom does, what customAttributes layers on, and how metadata.probability should be interpreted per type. This interpretive guidance goes beyond the enum/property descriptions in the schema.

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?

Opening sentence gives a specific verb (extract), resource (structured data from a web page), mechanism (Zyte API automatic extraction via browser), and the input/output contract (URL + extraction type in, typed JSON out). It explicitly distinguishes itself from siblings: extract_from_http for server-rendered pages and fetch_page/fetch_http for raw pages.

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

Usage Guidelines5/5

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

Explicit selection criteria are given: use extract_from_http for server-rendered pages (faster/cheaper), fetch_page/fetch_http for raw pages, and this tool is 'the default choice' and the only one with browser actions/viewport. It also routes among extraction types (detail vs list vs navigation vs pageContent vs webPageInfo) and gives a tie-break procedure (one call per type, keep higher probability).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources