Close Workspace
close_workspaceShut down a workspace’s worker to free its pool slot. This discards all documents, unsaved changes, and handles in that workspace.
Instructions
Shut down a workspace's worker and free its pool slot. All of that workspace's documents, unsaved changes, and handles are lost. The default workspace can be closed too (its worker respawns clean on next use).
If name is the use_workspace selection, the selection returns to "default",
whoever closes it. A call pinned with workspace never moves the selection
otherwise: closing your own pinned workspace leaves the pin as it is, so your
next call pinned to that name gets a fresh, empty worker (old handles fail).
current is the workspace this call ran in (as in list_workspaces), selected
the server-wide selection after the close.
Returns {closed: , workspace: , current: , selected: }.
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": {
"name": "<name>"
},
"name": "close_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| workspace | No | Run this call in this named workspace |