Install
These examples use the Vercel AI Gateway string model format, but Firecrawl tools work with any AI SDK provider. You can swap in
openai('gpt-5-mini'), anthropic('claude-sonnet-4.5'), or any supported provider.Quick Start
The easiest way to get started.FirecrawlTools() gives you search, scrape, and browser tools with an auto-generated system prompt that guides the model on tool selection.
false:
Individual Tools
Every tool is dual-purpose - use it directly as a tool (readsFIRECRAWL_API_KEY from env) or call it as a factory for custom config:
Scrape
Search
Search + Scrape
Map
Stream
Browser
The browser tool auto-creates a cloud session on first use and cleans up on process exit:Browser + Search
Async Tools
Crawl, batch scrape, extract, and agent return a job ID. Pair them withpoll to get results:

