buildCodebaseIndex
Scans local JS/TS/JSX/TSX files and builds a vector index using Gemini Embedding API for semantic search. Run after code changes or before searching.
Instructions
扫描整个本地代码库(js/ts/jsx/tsx文件),调用 Gemini Embedding API 构建/重构本地向量索引。当项目代码发生重大变化后,或者首次使用 searchCodebase 前,必须调用此工具构建索引。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "buildCodebaseIndex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dirPath | No | 要扫描和索引的根目录路径,支持相对路径,默认当前项目根目录 '.' | . |