---
title: "Vercel AI SDK + Zenrows · Give it the live web"
description: "Install @zenrows/ai-sdk-tools and give Vercel AI SDK agents the live web: scrape any page, extract named fields and screenshot layouts, even behind anti-bot and JavaScript rendering."
---
# Vercel AI SDK + Zenrows · Give it the live web

> Install @zenrows/ai-sdk-tools and give Vercel AI SDK agents the live web: scrape any page, extract named fields and screenshot layouts, even behind anti-bot and JavaScript rendering.

[Integrations](https://www.zenrows.com/integrations) / AI frameworks / Vercel AI SDK

## 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.

- No tools to write createZenrowsTools returns scrapeUrl , extractData and takeScreenshot , with descriptions and schemas the model already understands.

- The real page, not a block page Pages behind anti-bot systems, JavaScript rendering or geographic restrictions come back as ordinary text.

- Markdown, or just the fields Pages arrive as Markdown, so context goes on content, not markup. When you know what you want, extractData returns only the named fields.

- The cost of every call Each tool result carries creditsSpent and costUsd , so a model can report what a piece of research cost.

## Read a live page, in one call.

```
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](https://docs.zenrows.com/integrations/vercel-ai-sdk) .

## What people build with it.

- Fetch Research agents. A model reads several live sources and answers from them, rather than from its training data.

- Extract Competitive monitoring. Pull prices, titles or availability as named fields from pages that block ordinary requests.

- Fetch Retrieval over the live web. Ground answers in pages too fresh to be indexed, fetched at the moment the model asks.

- Fetch Layout 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.

Install it from [npm](https://www.npmjs.com/package/@zenrows/ai-sdk-tools) , read the [docs](https://docs.zenrows.com/integrations/vercel-ai-sdk) , or see the [package source](https://github.com/ZenRows/vercel-zenrows) . Also on [Mastra](https://www.zenrows.com/integrations/mastra) and [OpenAI Agents SDK](https://www.zenrows.com/integrations/openai-agents-sdk) .

_Canonical HTML: https://www.zenrows.com/integrations/vercel-ai-sdk_

## Site Navigation

### Global Hub
- [Home](https://www.zenrows.com/index.md)
- [Pricing](https://www.zenrows.com/pricing.md)
- [Products](https://www.zenrows.com/products.md)
- [Agent Toolkit](https://www.zenrows.com/agents.md)
- [Compare](https://www.zenrows.com/compare.md)
- [Alternatives](https://www.zenrows.com/alternatives.md)
- [Blog](https://www.zenrows.com/blog)
- [Docs](https://docs.zenrows.com)
- [llms.txt](https://www.zenrows.com/llms.txt)
- [Agent skill](https://www.zenrows.com/SKILL.md)

### On This Topic
- [Integrations directory](https://www.zenrows.com/integrations.md)
- [n8n](https://www.zenrows.com/integrations/n8n.md)
- [Make](https://www.zenrows.com/integrations/make.md)
- [Zapier](https://www.zenrows.com/integrations/zapier.md)
- [Clay](https://www.zenrows.com/integrations/clay.md)
- [LangChain](https://www.zenrows.com/integrations/langchain.md)
- [LlamaIndex](https://www.zenrows.com/integrations/llamaindex.md)
- [Claude API](https://www.zenrows.com/integrations/claude-api.md)
- [Claude Agent SDK](https://www.zenrows.com/integrations/claude-agent-sdk.md)
- [Claude Code](https://www.zenrows.com/integrations/claude-code.md)
- [Claude Desktop](https://www.zenrows.com/integrations/claude-desktop.md)
- [Cursor](https://www.zenrows.com/integrations/cursor.md)
- [Google ADK](https://www.zenrows.com/integrations/google-adk.md)
- [Hermes](https://www.zenrows.com/integrations/hermes.md)
- [JetBrains](https://www.zenrows.com/integrations/jetbrains.md)
- [OpenAI Agents SDK](https://www.zenrows.com/integrations/openai-agents-sdk.md)
- [OpenClaw](https://www.zenrows.com/integrations/openclaw.md)
- [GitHub Copilot](https://www.zenrows.com/integrations/github-copilot.md)
- [VS Code](https://www.zenrows.com/integrations/vscode.md)
- [Windsurf](https://www.zenrows.com/integrations/windsurf.md)
- [Zed](https://www.zenrows.com/integrations/zed.md)
- [OpenAI API](https://www.zenrows.com/integrations/openai.md)
- [Dify](https://www.zenrows.com/integrations/dify.md)
- [Flowise](https://www.zenrows.com/integrations/flowise.md)

## Structured data



<script type="application/ld+json">
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.zenrows.com/"},{"@type":"ListItem","position":2,"name":"Integrations","item":"https://www.zenrows.com/integrations"},{"@type":"ListItem","position":3,"name":"Vercel AI SDK + Zenrows","item":"https://www.zenrows.com/integrations/vercel-ai-sdk"}]}
</script>
