Search the web
web_access_searchSearch the public web by query and get ranked results plus knowledge panels, AI overviews, and People also ask; target Google tabs for images, videos, shopping, books, places, or forums.
Instructions
Search the public web for a query and get ranked organic results back, plus whatever Google rendered around them: knowledge panel, AI overview, People also ask, local pack, videos, discussions. Google's images, videos, shopping, books, places and forums tabs are searched with searchType.
Best for: a request that names no URL, or one that needs sources found before anything is read. Not for: a URL you already have — use web_access_fetch instead.
Optional request field: searchCount — how many organic results you want, an integer from 1 to 300 (above 300 is rejected). Google is paged, up to 36 pages, until that many are in hand; each page is billed as one search. If Google has fewer results than that, you get every result it has, with paging.stoppedBy: "end_of_results". Omit it for one page, about 10 results. Not with format: "raw", which returns one page per call.
Usage Example:
{ "query": "latest developments in AI agents 2026" }{ "query": "construction consulting firms Ohio", "searchCount": 30 }Optional Google field: searchType — the Google tab to search: "web" (the default, the ordinary results page), "images", "videos", "shopping", "books", "places" or "forums". There is no news tab. Each page fetched is billed as one search, as on the web.
videos,books,forumsanswer results, paged like the web; each video carries its channel, platform and duration and each book its authors and publication date.imagesanswers images, about 100 a page, each with its title, the page it is on, the source, the image file and its size. It has 3 pages;searchCountup to 300 collects across them, usually about 270 images.shoppinganswers products, the one page of about 55 product cards: title, productId, price and original price as shown, merchant, delivery, returns, rating, reviews. A card has no URL. Google does not page this tab, sopagemust be 1.placesanswers places, 20 businesses a page, paged like the web up to page 15.dateRange,sortByandverbatimapply to web, videos and forums only;format: "raw"to web only.
{ "query": "eames lounge chair", "searchType": "images", "searchCount": 150 }Optional Google filters: safeSearch — true removes explicit results; includeOmittedResults — true includes the results Google hides as very similar to ones shown; autocorrect — false searches the query exactly as typed instead of Google's correction; restrictCountry — a two-letter code — keeps only pages from that country; verbatim — true matches the words exactly, without synonyms.
{ "query": "climate policy", "restrictCountry": "FR", "safeSearch": true }Optional Google fields: page, dateRange and sortBy apply to Google results only.
page— the results page to start from, an integer from 1 to 30 (default 1), where page N is the page Google shows as N. WithoutsearchCountthe response is that one page; with it,searchCountresults are collected starting from that page.pageandsearchCounttogether stay within the first 300 results: (page - 1) × 10 + (searchCount, or 10 without it) must be at most 300. A page past the last result returns no results withzeroResults: true. A page holds about 8 to 10 results, so separatepagecalls can repeat or skip a result; for one list without repeats, make one call withsearchCount.dateRange— limit results to a publication window: one of"hour","day","week","month"or"year"for the past hour through the past year, or{ "from": "2024-01-01", "to": "2024-06-30" }for a custom range of ISO dates (YYYY-MM-DD), inclusive. Either end is optional but at least one is required, andfrommust not be afterto.sortBy—"relevance"(the default) or"date"for the newest results first.
{ "query": "heat pump grants", "page": 2, "dateRange": "month", "sortBy": "date" }Optional Google field: format — "structured" (JSON, the default and recommended) or "raw" (the Google results page as HTML, one page per call). With raw, the response gives the page's size in bytes and whether it was truncated, then its HTML. At most 60000 characters of markup are sent per call, cut at a tag boundary; the HTTP API's POST /v1/search returns the page whole. Raw supports page only, not searchCount: a raw call with searchCount is rejected (the API answers 400), so ask for page N with page and send one call per page, each billed as one search. dateRange and sortBy work with raw.
{ "query": "heat pump grants", "format": "raw" }Returns: the ranked organic results as numbered lines, each with position (its place in this response), title, URL and snippet; a title is followed by its Google rank when that differs from the position, as it does from page 2 on. A result whose destination Google hid is still listed, with "(no link)" in place of its URL. With searchType "images", "shopping" or "places", the numbered lines are the images, product cards or places instead, and there are no results. When the page carried more, an "Also on the page" JSON block follows with every surface Google rendered — present only when the page carried it, and only Google returns them:
entity— the knowledge panel for the one business or person the query named: title, subtitle, description and its source, rating, reviews, website, labelled attributes (address, phone, hours…), social profiles. Often the whole answer for a business query, with no results.places— local-pack business listings: name, category, rating, reviews, address, phone, hours, url, mapsUrl. Read entity and places before treating empty results as no answer.overviews— Google's AI overviews: the first entry with no topic is the query's own summary, entries with a topic and question are the "Things to know" tabs, declined: true marks a frame Google did not fill. Each has text and the cited sources as { title, url } — fetch those to verify a claim.peopleAlsoAsk(questions only; answers are not on the page),relatedSearches,answers(localTime, currency, unitConversion, weather, translation, sports or flights),spelling(substituted or suggested correction).ads,videos,shortVideos,discussions,images,sitelinks— each entry with position, title and url.paging— { pages, complete, stoppedBy }, only when searchCount was sent. pages is how many results pages answered, each billed as one search. stoppedBy is why paging stopped: search_count (the count was reached), end_of_results (Google had no more, or the first page carried no organic results), page_cap (the 36-page limit; Google may have more), page_failed (a later page could not be fetched) or deadline (the time budget ran out). complete is false only for page_failed and deadline, and results then holds what was collected. Surfaces describe the first page only; positions run on across pages.
A snippet is not the page, and an overview is not a source. To read a result, call web_access_fetch on its URL before answering from it.
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": {
"query": "<query>"
},
"name": "web_access_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Google only: the results page to start from, an integer from 1 to 30 (default 1), where page N is the page Google shows as N. Without searchCount the response is that one page; with it, searchCount results are collected starting from that page. page and searchCount together stay within the first 300 results: (page-1)*10 + (searchCount, or 10) must be at most 300. A page past the last result returns zeroResults true. A page holds about 8 to 10 results, so separate page calls can repeat or skip a result; use one call with searchCount for a list without repeats. | |
| query | Yes | The search query. Be specific and descriptive for best results. | |
| format | No | Google only: 'structured' (JSON, the default and recommended) or 'raw' (the Google results page as HTML, one page per call), at most 60000 characters of markup per call. Raw supports page only: searchCount is rejected with raw, so send one call per page. dateRange and sortBy work with raw. Web only. | |
| sortBy | No | Google only: 'relevance' (the default) or 'date' for the newest results first. Web, videos and forums only. | |
| verbatim | No | Google only: true matches the query's words exactly, without synonyms or stemming. Web, videos and forums only. | |
| dateRange | No | Google only: limit results to a publication window. One of 'hour', 'day', 'week', 'month' or 'year' for the past hour through the past year, or {from, to} for a custom range of ISO dates (YYYY-MM-DD), inclusive; either end is optional but at least one is required, and from must not be after to. Web, videos and forums only. | |
| safeSearch | No | Google only: true removes explicit results (SafeSearch). | |
| searchType | No | Google only: the tab to search. 'web' (the default) is the results page; 'videos', 'books' and 'forums' answer results; 'images' answers images (3 pages of about 100); 'shopping' answers products (one page of about 55, so page must be 1); 'places' answers places (20 a page). No news tab. | |
| autocorrect | No | Google only: false searches the query exactly as typed rather than Google's corrected spelling. On by default. | |
| searchCount | No | Organic results wanted, 1 to 300. Google is paged, up to 36 pages, until that many are in hand or it has no more, and each page is billed as one search. Omit for one page (about 10 results). Not with format raw, which returns one page per call; use page there. | |
| restrictCountry | No | Google only: keep only results from pages in this country, a two-letter ISO code such as 'FR'. It does not change where the search runs from. | |
| includeOmittedResults | No | Google only: true includes the results Google omits as very similar to ones already shown. |