refresh_index
Re-index the codebase to provide AI assistants with an accurate view of your project. Supports full re-index or incremental mode, which processes only changed files for quicker updates.
Instructions
Routes to the active/current project automatically when known. Re-index the codebase. Supports full re-index or incremental mode. Use incrementalOnly=true to only process files changed since last index.
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": "refresh_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Reason for refreshing the index (for logging) | |
| incrementalOnly | No | If true, only re-index files changed since last full index (faster). Default: false (full re-index) | |
| project | No | Optional project selector for this call. Accepts a project root path, file path, file:// URI, or a relative subproject path under a configured root. | |
| project_directory | No | Deprecated compatibility alias for older clients. Prefer project. |