Index a project
index_projectBuilds or refreshes a semantic index for a project root, embedding new or changed files and removing deleted ones to enable natural-language code search.
Instructions
Build or refresh the semantic index of a project root. Embeds only new, edited or outdated files and drops deleted ones. Pass duplicates: true once to enable find_duplicates for this project.
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_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to project root | |
| force | No | Discard the stored index and rebuild it from scratch | |
| duplicates | No | true builds the duplicate index, false deletes it - omit to keep it as is | |
| extensions | No | File extensions to index - omit to keep the project's list |