Skip to Content
MosaicMosaicDocs
Tool Reference

WebSearch

Search the public web.

Starter documentation. Features and account details may differ from this deployment.

WebSearch

Search the public web. Returns up to maxResults pages, each with its title, URL, a query-relevant snippet and, for news, its publication date. Snippets are often enough to answer; call WebFetch on a result's URL when you need the full page. Cite the URLs you use.

Parameters

ParameterTypeRequiredDescription
querystringYesWhat to search for, in natural language or keywords (at most 400 characters).
domainsstring[]NoOnly return pages from these domains, e.g. ["docs.rs", "github.com"].
excludeDomainsstring[]NoNever return pages from these domains.
sincestringNoOnly return pages published on or after this date (YYYY-MM-DD).
topic"general" | "news"Nonews for recent articles with publication dates; general (the default) otherwise.
maxResultsintegerNoHow many results to return, 1 to 20 (default 5).
includeContentbooleanNoAlso return each page's text as Markdown (up to 8,000 characters per result).

On this page