Web Search
Connect Toby to web search (powered by Brave Search) to search the web from chat. When configured, the webSearch tool is available in every chat session automatically—you don't need to select the integration explicitly.
CLI name: websearch
Shipped as toby-plugin-websearch (Swift). Release installs place it in ~/.toby/plugins/; from source run bun run build:plugin:websearch then toby plugins install ./dist/toby-plugin-websearch.
Prerequisites
- A Brave Search account
- A Brave Search API key (see below)
Get your API key
Brave Search offers a free tier (up to 2,000 queries/month) and paid plans for higher volume.
1. Sign up for Brave Search API
- Go to Brave Search API.
- Click Get Started and create an account.
- Choose a plan (Free is sufficient for personal use).
2. Copy your API key
- Open the Brave Search API dashboard.
- Under API Keys, copy your subscription token.
Toby sends this token as the X-Subscription-Token header on each request.
Configure
toby config
Go to Integrations → Web Search and enter:
| Field | Description |
|---|---|
| Brave Search API Key | Your Brave Search API subscription token |
Save the configuration.
Connect
toby connect websearch
Toby validates the API key and marks Web Search as connected.
Verify
toby status integration -i websearch
Disconnect
toby disconnect websearch
Using web search in chat
Once the API key is configured, webSearch is available in all chat sessions as a global tool. You don't need to specify --integration websearch—Toby includes it automatically when the plugin is installed and the API key is present.
Example chat prompts
- "Search the web for the latest news on AI regulation"
- "Look up the weather forecast for San Francisco this weekend"
- "Research the best restaurants in Tokyo near Shibuya station"
- "Find recent articles about Rust programming language"
Combined with web fetch
You can combine webSearch with fetchWebContent (always available) to read full articles:
- Ask Toby to search for something: "Search for recent articles about TypeScript 5.5"
- Then ask it to read a result: "Read the content from the first result"
Toby will use webSearch to find results, then fetchWebContent to extract the clean article text from a chosen URL—stripping ads, navigation, and footers.
Search options
The webSearch tool supports optional parameters that Toby can use automatically based on your request:
| Parameter | Values | Description |
|---|---|---|
count | 1–20 | Number of results to return (default 10) |
freshness | pd, pw, pm, py | Time filter: past day, past week, past month, past year |
For example, asking "What happened in tech news today?" will automatically use freshness: pd (past day).
Migration from Brave Search
If you previously used the built-in bravesearch integration, Toby migrates your API key and connected state to websearch automatically on startup.
Related
- Integrations overview
- Configure and connect
- Developer notes:
docs/web-search.mdin the Toby repository