Crawl: the most reliable web crawler APISee what’s new
Zenrows
Talk to sales Start free

Integrations / AI frameworks / Vercel AI SDK

+ Zenrows

AI SDK agents,
on the live web.

The @zenrows/ai-sdk-tools package gives the Vercel AI SDK three ready-made tools: read a page, pull named fields out of it, or screenshot how it renders. One factory call, and no tool definition or fetch wrapper to write.

$npm install @zenrows/ai-sdk-tools

What the package
gives your agent.

Read a live page,
in one call.

agent.ts
import { generateText, isStepCount } from "ai";
import { anthropic } from "@ai-sdk/anthropic";
import { createZenrowsTools } from "@zenrows/ai-sdk-tools";

const zenrows = createZenrowsTools({
  apiKey: process.env.ZENROWS_API_KEY!,
});

const { text } = await generateText({
  model: anthropic("claude-sonnet-5-5"),
  prompt: "Read https://www.scrapingcourse.com/ecommerce/ and name three products with their prices.",
  tools: zenrows,
  stopWhen: isStepCount(3), // room to call a tool, read it, answer
});

The model calls scrapeUrl on its own and answers from the page. The same tools work unchanged in streamText and the SDK’s Agent class. Options and troubleshooting are in the AI SDK docs.

What people build with it.

  1. FetchResearch agents. A model reads several live sources and answers from them, rather than from its training data.
  2. ExtractCompetitive monitoring. Pull prices, titles or availability as named fields from pages that block ordinary requests.
  3. FetchRetrieval over the live web. Ground answers in pages too fresh to be indexed, fetched at the moment the model asks.
  4. FetchLayout and rendering questions. takeScreenshot hands a vision model a real image, so it can say what a page looks like, not only what it says.

Connect the AI SDK
today.