Index a project
indexBuilds a codebase lookup structure from an absolute project path or comma-separated monorepo paths, then keeps it current with a file watcher. Use when a tool reports no available codebase data.
Instructions
Build the code index. Call it only when a tool says "No codebase indexed". Pass an absolute path, or comma-separated paths for a monorepo. A file watcher then keeps it fresh.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the project | |
| paths | No | More paths, comma-separated |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||