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.
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": {
"path": "<path>"
},
"name": "e_set_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) |