e_set_workspace
Switch the active project workspace to a new directory when the current path is incorrect. Automatically creates cache and optionally re-indexes the new workspace.
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
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the new workspace directory | |
| reindex | No | Whether to trigger re-indexing after switching (default: true) | |
| clearCache | No | Whether to clear existing cache before switching (default: false) |