atlas_index
Index source code into a local search index for semantic code search. Supports incremental updates and optional full re-indexing.
Instructions
Index (or re-index) source code into the local search index.
IMPORTANT: unless the user already specified what to index, call with dry_run=true first, show the candidate folders to the user and ASK whether to index everything or specific folders. Only then call again with the chosen 'paths' (or none for the full workspace).
Indexing is incremental by default: unchanged files are skipped on subsequent calls, making re-runs fast. Use full=true to force a complete rebuild ignoring cached file hashes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | No | Absolute path to the root directory to index. Defaults to the parent directory of the resolved index, or the current working directory if no index has been resolved yet. Must exist and be a directory. | |
| paths | No | Optional list of subfolder paths, relative to 'workspace', to index (e.g. ["src", "docs"]). When omitted, the entire workspace is indexed. Each path must resolve to a location inside 'workspace' (no path traversal). | |
| full | No | When true, forces a full re-index ignoring cached file hashes. Defaults to false (incremental). | |
| dry_run | No | When true, does NOT index anything. Instead, returns the top-level candidate folders under 'workspace' with a count of eligible files in each, so the agent can present them to the user before deciding what to index. Defaults to false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |