Clear Index
index.clearClears cached index data for a workspace to resolve stale or corrupt local index state. Choose overlay to drop only mutable layer or all for entire cache.
Instructions
Delete cached index data for a workspace. Use this only to recover from stale or corrupt local index state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Choose `overlay` to drop only the mutable layer or `all` to remove the entire local cache. | |
| workspaceRoot | No | Absolute workspace root whose cache should be cleared. Defaults to the server workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elapsedMs | Yes | ||
| storageDir | Yes | ||
| clearedScope | Yes | ||
| removedPaths | Yes |