Point it at a domain, choose the formats, and read every page back as clean Markdown.
Find the pages that answer the question.
const results = await client.web.search({ query: 'stripe usage based billing',});Read each result as Markdown.
const page = await client.web.scrape({ url: results[0].url, formats: { markdown: true },});Hand the pages to your model with their sources.
const answer = await model.generate({ context: page.markdown.data,});