search_context
Search team knowledge base for domain rules, conventions, and project notes, returning ranked sections within a token budget to answer queries without exceeding context limits.
Instructions
Search the team's knowledge base (domain rules, conventions, decisions, project notes) and return the most relevant sections, ranked, within a token budget. Use it to look something up or see what exists; use compile_bundle when you want one context block for a task. Read-only. Each section carries its path, heading, scope, score and last-updated date; results never exceed max_tokens and say how many sections the budget omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | No | Repository-relative code paths you are working on (e.g. ["services/payment/refund.go"]). Documents whose refs cover them are pulled to the top. | |
| query | Yes | What you are working on or looking for, as a natural-language sentence or a few keywords, in any language (e.g. 'retry policy for acquirer calls'). Required, non-empty. | |
| top_k | No | Maximum number of sections to return before the token budget applies (default 8, server-capped). | |
| scopes | No | Knowledge scopes to search, e.g. ["domain","conventions","projects/ledger-service"]. Default: domain and conventions. Use list_scopes to see the project scopes. | |
| max_tokens | No | Token budget for the returned sections (default 2000, must be positive). The result never exceeds it; lower-ranked sections are omitted first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget | Yes | ||
| chunks | Yes | ||
| scopes | Yes | ||
| omitted | Yes | ||
| total_tokens | Yes |