search_context
Search the team knowledge base to find the most relevant sections on a topic, ranked and limited to a token budget. Use it to look up domain rules, conventions, or project notes.
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 |
|---|---|---|---|
| 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 |