Maintain the local index
maintain_indexInspect, compact, or migrate the local LanceDB index to manage its size and format, ensuring consistent state without executing project code.
Instructions
Inspect, compact, and migrate the local LanceDB index with bounded, explicit maintenance operations; no project code is executed.
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": "maintain_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | Project directory | . |
| operation | No | Inspect the local index, compact its fragments, or migrate local Lance manifests | inspect |
| delete_unverified | No | For compaction, remove unverified fragments after a safe snapshot | |
| cleanup_older_than_days | No | For compaction, prune table versions older than this many days |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | Yes | ||
| error | No | ||
| message | No | ||
| success | Yes | ||
| schema_version | Yes |