Install
These examples use the Vercel AI Gateway string model format, but Firecrawl tools work with any AI SDK provider. You can also use provider imports like
anthropic('claude-sonnet-4-5-20250514') from @ai-sdk/anthropic.Quick Start
FirecrawlTools() bundles search, scrape, and interact by default.
FirecrawlTools
FirecrawlTools() gives you the default tools plus an auto-generated systemPrompt you can pass to generateText.
formats: ['markdown'] only when you need the full page content.
Individual Tools
Every tool can be used directly or called with options:Search + Scrape
Map
Stream
Interact
interact() creates a scrape-backed interactive session. Call start(url) to bootstrap a session and get a live view URL, then let the model reuse that session through the interact tool.
interactTool.interactiveLiveViewUrl.
Reuse browser state across sessions with profiles:
browser() is deprecated. Prefer interact().
Async Tools
Crawl, batch scrape, and agent return a job ID. Pair them withpoll.

