Input
| Parameter | Type | Required | Description |
|---|---|---|---|
brainId | string | Yes | The brain to search. Get it from list_public_brains. |
query | string | Yes | Natural-language description of the context you need. |
limit | number | No | Max passages to return. Default 5, max 20. |
entities | string[] | No | Optional entity names to focus the search on. |
Example
Prompt:“Using the Supabase brain, how do I set up Row Level Security policies?”Tool call:
Score, a Source, and a Node ID. Pass that node ID to get_brain_node to read the full source.
The underlying endpoint reports query failures inside the response body rather than as an HTTP error. The tool surfaces a clear
Query failed: ... message when that happens, so you do not need to handle status codes yourself.When to use it
- The agent needs precise, sourced context about a library and a general answer is not enough.
- You want to ground the agent in real documentation instead of relying on its training data.
- You have already picked a brain with list_public_brains.
See also
- list_public_brains: find a brain to query.
- get_brain_node: read the full source behind a result.
- get_brain_tree: browse the brain’s structure instead of searching.

