index_directory
Recursively index all code files in a directory to enable search, returning a job ID for progress tracking. Use force=true to re-index even when the directory is unchanged.
Instructions
Index all code files in a directory (recursive). Returns immediately with a job_id; poll get_index_job to track progress. Set force=true to re-index even if the directory is already indexed and unchanged (otherwise the call no-ops to the prior job).
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": "index_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| pattern | No | **/* | |
| directory | Yes |