project_index_refresh
project_index_refreshRefreshes the project index when the snapshot is stale, unknown, deleted, or has unindexed files. Returns a freshness summary and the new index run.
Instructions
Mutation tool for index freshness: run the project indexer through the current project-store cache when the snapshot is stale, unknown, deleted, or has unindexed files, then return before/after freshness summaries and the new index run. In if_stale mode, unknown freshness refreshes defensively and unindexed files count as stale work.
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": "project_index_refresh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| reason | No | ||
| projectId | No | ||
| projectRef | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | ||
| after | No | ||
| stats | No | ||
| _hints | Yes | ||
| before | Yes | ||
| reason | Yes | ||
| skipped | Yes | ||
| toolName | Yes | ||
| warnings | Yes | ||
| projectId | Yes | ||
| projectRoot | Yes | ||
| operatorReason | No |