The web search tool enables agents to search the internet and retrieve information.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/zeroclaw-labs/zeroclaw/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The web search tool provides:- Multiple search engine backends
- Result aggregation and ranking
- Web page content extraction
- Rate limiting and caching
Parameters
Search query string
Number of results to return (default: 5, max: 10)
Whether to fetch full page content (default: false)
Example
Response
Array of search results
Example Response
Search Backends
- DuckDuckGo (Default)
- Google Custom Search
- Brave Search
Privacy-focused search with no API key required.Features:
- No tracking
- No API key needed
- Good for general queries
- Rate limited
Configuration
Rate Limiting
To avoid overwhelming search engines:- DuckDuckGo: 1 request per second
- Google: 100 queries per day (free tier)
- Brave: 2000 queries per month (free tier)
Content Extraction
Whenfetch_content=true, the tool:
- Fetches the full HTML page
- Extracts main content (removes ads, navigation)
- Converts HTML to plain text or markdown
- Truncates to 10,000 characters
Security
- HTTPS enforcement
- Domain allowlist (optional)
- Content size limits
- Request timeouts
- XSS prevention in extracted content
Examples
Quick Search
Fetch Full Content
Source Code
Implementation:src/tools/web_search.rs