Indexes a specific set of files, adding them to or updating them in the code graph. Use this when you've changed a few files and want them indexed immediately without waiting for background indexing or triggering a full workspace reindex.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
files | array | yes | — | Array of absolute file paths to index |
Natural language:
Index the files I just created: src/auth/oauth.ts and src/auth/providers.ts
MCP call:
{
"tool": "stellarion_index_files",
"arguments": {
"files": [
"/Users/dev/project/src/auth/oauth.ts",
"/Users/dev/project/src/auth/providers.ts"
]
}
}
Natural language:
I just refactored src/utils/format.py, update the index for it
MCP call:
{
"tool": "stellarion_index_files",
"arguments": {
"files": [
"/Users/dev/project/src/utils/format.py"
]
}
}
Returns indexing results per file:
stellarion_reindex_workspace when you only need to update a handful of files.stellarion_index_directory instead.