web_search tool lets agents search the web during workflow execution. It uses the Brave Search API to return titles, URLs, and descriptions for any query. The tool is registered automatically for all provider profiles (Anthropic, OpenAI, Gemini) — no workflow configuration is needed beyond setting the API key.
Setup
- Get a Brave Search API key from the Brave Search API dashboard
-
Add it to your
.envfile:
- Verify the key is working:
web_search calls return an error.
How it works
Agents call theweb_search tool with a query string. Fabro sends the query to the Brave Web Search API (/res/v1/web/search) and returns numbered results with title, URL, and description:
BRAVE_SEARCH_API_KEY is not set, the tool returns an error explaining that the key is required. The agent can then fall back to other approaches.
See the web_search tool reference for parameters and details.
Permissions
web_search is classified as a shell category tool, requiring the full permission level for auto-approval. At lower permission levels:
- Interactive mode — the user is prompted to approve each call
- Non-interactive mode (
--auto-approve) — calls are denied
Example workflow
A workflow that researches a topic before writing about it:research.fabro
Troubleshooting
“BRAVE_SEARCH_API_KEY environment variable is not set” — Add the key to.env or your shell environment. Run fabro doctor --live to verify.
“Brave Search API returned status 401” — The API key is invalid or expired. Generate a new key from the Brave Search API dashboard.
“Brave Search API returned status 429” — Rate limit exceeded. The Brave Search free tier has usage limits. Upgrade your plan or reduce the frequency of web_search calls.