?
searchGoogle
Search the web using Google and return structured results.
mindstudio.searchGoogle({ query, exportType }) → Result
Searches the web through Google and returns structured results — titles, links, snippets — to feed a model or to pick a URL to scrape.
Parameters
query
string
RequiredThe search query to send to Google
exportType
string
RequiredFormat for the variable value: "text" or "json"
textjson
countryCode
string
Google gl country code (defaults to US)
languageCode
string
Google hl language code (defaults to "en")
dateRange
string
Time range filter: "hour", "day", "week", "month", "year", or "any"
hourdayweekmonthyearany
numResults
number
Number of results to return (1-100, default: 30)
fetchTopN
number
Read the page content of the first N results in this same step (0-10, default 0 = off), rather than following up with a Scrape URL step per result. Each page is a full scrape, so this costs substantially more than the search alone.
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.searchGoogle({ query: /* ... */, exportType: /* ... */ });