e_set_workspace
Change the current project workspace path at runtime to correct incorrect directories or switch between projects. Automatically creates cache folders and optionally re-indexes the new workspace for accurate code search.
Instructions
Change the project workspace path at runtime. Use this when you detect the current workspace is incorrect or you need to switch to a different project directory. Creates cache folder automatically and optionally re-indexes the new workspace.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the new workspace directory | |
| clearCache | No | Whether to clear existing cache before switching (default: false) | |
| reindex | No | Whether to trigger re-indexing after switching (default: true) |