Brave Search
BraveSearch — Web search via Brave Search API
Provides internet search capabilities for the AI model. When the model needs up-to-date information it can emit a CALL:search(query='...') marker. The servlet layer detects this, calls search, and feeds the results back into the conversation so the model can produce a grounded answer.
Configuration
| Property | Format | Example |
|---|---|---|
AI_BraveSearch_ApiKey | API key string | BSA...xyz |
AI_BraveSearch_MaxResults | Integer (1–20) | 5 |
API docs: https://api.search.brave.com/app/documentation/web-search
Domains to whitelist
api.search.brave.com — Brave Search API endpoint
Properties
Matches CALL:search(query='...'), CALL:search(query="..."), or positional CALL:search('...') / CALL:search("...") in model output.
Whether to filter sensitive data from queries (default: false, set by plugin property).
Whether web search is available (API key configured).
Maximum number of results to return (configurable via AI_BraveSearch_MaxResults).
Functions
Formats search results into a text block suitable for injecting into a conversation.
Sanitizes a search query by removing personally identifiable information (PII) and identifiers that should not be forwarded to an external search engine. Serves as a second layer of defense in addition to possible instructions in the prompt to the model to avoid including sensitive information in the query.