Latest
Frameworks
SDKs
Other
Resources
Firecrawl tools for the AI SDK. Web scraping, search, crawling, and data extraction for AI applications. Scrape any website into clean markdown, search the web, crawl entire sites, and extract structured data.
pnpm add firecrawl-aisdk
npm install firecrawl-aisdk
yarn add firecrawl-aisdk
bun add firecrawl-aisdk
# Add to your .env file FIRECRAWL_API_KEY=your_api_key_here
import { generateText, isStepCount } from 'ai'; import { scrapeTool } from 'firecrawl-aisdk'; const { text } = await generateText({ model: 'openai/gpt-6-luna', prompt: 'Scrape https://firecrawl.dev and summarize what it does', tools: { scrape: scrapeTool, }, stopWhen: isStepCount(3), }); console.log(text);