workspace_close
Closes a workspace and frees its runner slot, waiting on the runner or leaving the reaper to finish cleanup. Optionally deletes the session directory for host-mode fleets.
Instructions
Close your workspace and free its runner slot. state "closing" means the runner could not be reached yet and the reaper will finish the job.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "workspace_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fleet | No | Fleet name. Omit to use the default. | |
| delete | No | Host-mode fleets: also delete the session directory and everything in it. DESTRUCTIVE: set it only when the user asked for it. Without it the directory is kept and reattached on the next open. | |
| context | No | Context name. Omit to use the default. | |
| workspace | No | Workspace id. Omit to use this session's workspace on the fleet. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| where | Yes | ||
| workspace | Yes |