codebase_search
Search a codebase using natural language queries to find relevant code snippets.
Instructions
语义检索代码库,返回最相关的代码片段。
Args: information_request: 自然语言查询,例如"用户登录鉴权逻辑在哪里" directory_path: 要检索的代码库绝对路径 top_n: 可选,返回结果数(0 = 用默认值 SCM_TOP_N,默认 10) path_filter: 可选,文件路径过滤;含通配符按 glob 匹配(如 "*.java"、"/service/"), 否则按路径子串匹配(如 "controller") include_related: 可选,是否附带 call graph 关联块(调用者/被调用者),默认 True
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| path_filter | No | ||
| directory_path | Yes | ||
| include_related | No | ||
| information_request | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |