index_codebase
Create a semantic index of a codebase to unlock intelligent search. Run this first to enable code queries.
Instructions
<when_to_use> Call this first before searching any new codebase Required prerequisite for search_codebase </when_to_use>
<parameter name="force_reindex" required="false">
<type>boolean</type>
<description>Force complete reindexing even if already indexed</description>
<default>false</default>
<when_to_use>Code has changed significantly or search results seem outdated</when_to_use>
</parameter>
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": {
"codebase_path": "<codebase_path>"
},
"name": "index_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codebase_path | Yes | ||
| force_reindex | No |