How it works
The AI has two web tools:WebSearch
Returns a list of search results with titles and URLs:- The AI constructs a search query based on what it needs
- Returns up to 10 results with titles, URLs, and snippets
- The AI can choose which results to fetch for detailed content
WebFetch
Retrieves full page content from specific URLs:- Fetches the complete content of a web page
- Returns hostname, byte size, and HTTP status
- Content is converted to markdown for easier processing
Result display
Search results appear as an expandable list:- Expandable results: Click to expand and see all results
- Title and URL: Each result shows the page title and URL
- Link icon: Visual indicator that these are web resources
- Clickable URLs: Click any URL to open it in your browser

When AI searches
The AI typically performs web searches for:- Unfamiliar APIs: Looking up API documentation for libraries it hasn’t seen before
- Error messages: Finding solutions to cryptic error messages or stack traces
- Library documentation: Checking the latest syntax or usage patterns for a framework
- Explicit requests: When you ask it to search for something specific
The AI is trained on data up to a certain cutoff date. Web search allows it to access current documentation, recent changes, and real-time information.
Privacy
Web searches are performed through Purple’s API with privacy protections:- Search terms only: Only the search query is sent, never your code
- No code context: Your codebase content stays local and is not included in searches
- Secure fetching: WebFetch retrieves pages over HTTPS