switch_workspace
Make the connector act in another of the user's workspaces, by its id from list_workspaces. Without confirm:true it returns a preview naming the workspace, the user's role there and its write and AI-spend switches, and changes nothing. It changes only which workspace the user's connector uses, for every assistant connected with the account, until the next switch; it changes no workspace data and works even where write actions are off or the plan has lapsed. Every later call reads and writes in the new workspace, under the user's role there and that workspace's own plan and switches.
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": {
"workspaceId": "<workspaceId>"
},
"name": "switch_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set true to switch. Omit for a preview. With confirm:true, also pass the preview's previewToken. | |
| workspaceId | Yes | The id of one of the user's workspaces, from list_workspaces. | |
| previewToken | No | With confirm:true: the previewToken from this tool's preview (valid 15 minutes, once, for exactly the previewed arguments). |