Brave Search Skill
Search the web in real-time using the Brave Search API.
Usage
When the user asks to search for something, look up facts, or find the latest information:
curl -s "https://api.search.brave.com/res/v1/web/search?q=$(echo '{query}' | jq -sRr @uri)" \
-H "Accept: application/json" \
-H "X-Subscription-Token: {BRAVE_API_KEY}" | jq '.web.results[:5] | .[] | {title, url, description}'
Guidelines
- URL-encode the search query before sending
- Return the top 3-5 most relevant results
- Include the title, URL, and a brief snippet for each result
- For follow-up questions, refine the query rather than repeating the same search
- Summarize findings rather than dumping raw JSON
- If no API key is configured, let the user know they need to set BRAVE_API_KEY
When to Use
- Fact-checking claims or statements
- Finding the latest news or updates on a topic
- Researching unfamiliar topics
- Looking up documentation or tutorials
- Finding prices, reviews, or comparisons