index_directory
Index supported files in a directory and report new, changed, unchanged, or failed files. Force re-indexing or run asynchronously for large directories.
Instructions
Index supported files in a directory with diff reporting.
Returns which files are new, changed, unchanged, or failed.
Set force=True to force re-indexing all files.
Set async_index=True for large directories to prevent timeout.
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": "index_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | . | |
| force | No | ||
| limit | No | ||
| pattern | No | **/* | |
| recursive | No | ||
| async_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||