f_set_workspace
Change the current workspace path at runtime to update search directory and cache, with optional full reindex for multi-project workflows.
Instructions
Changes the current workspace path at runtime. This updates the search directory and cache, and optionally triggers a full reindex. Useful for multi-project workflows.
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": {
"workspacePath": "<workspacePath>"
},
"name": "f_set_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspacePath | Yes | Absolute path to the new workspace directory | |
| reindex | No | Whether to trigger a full reindex after switching (default: true) |