Web Search

Pattern
@exalabs webSearch Tool
Search with Exa AI SDK's webSearch tool and Anthropic Claude Sonnet 4.5. Uses @exalabs/ai-sdk for seamless integration.
IntermediateNov 2025View the full pattern on desktop


Problems solved
- Call Exa's zero-config webSearch tool from @exalabs/ai-sdk
- Stream Claude responses with automatic source attribution
- Avoid hand-rolled Exa client wiring for basic search
Use cases
- Quick-start Exa search agents
- Citation-backed research chats
- Content discovery prototypes
- Provider-packaged tool demos
AI SDK APIs
streamTextstepCountIsconvertToModelMessagestool(createUIMessageStreamResponseuseChat
Tags
aiwebsearchexasearch-toolresearchcontent-discoverysemantic-searchlive-crawlingai-sdk-integrationanthropicclaudetype-safe
Requirements
- Node.js
- 24+
- Memory
- 512MB
- Other
- Exa API key
- Anthropic API key
External services
exaanthropic
Ready to use?
View the full interactive pattern with live preview and copy the source code.
View the pattern on desktop






