clear_index
Deletes all indexed code chunks for a specified codebase directory to reset its local vector index before re-indexing.
Instructions
Clear all indexed code chunks for a specific codebase.
Args:
directory: Path to the codebase directory whose index should be cleared
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": {
"directory": "<directory>"
},
"name": "clear_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |