env_switch
Switches the active environment for a workspace, marking hosted environments read-only while keeping local main writable; unconfirmed calls return a plan without changes.
Instructions
Set the active environment for this face. Switching to a served (hosted) env records the pointer and marks the face read-only; a local main stays writable (D135). Destructive env-wide verbs stay refused on main regardless. Unconfirmed, returns a plan and changes nothing (P8).
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": "<name>"
},
"name": "env_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| confirmed | No | ||
| workspaceId | Yes | ||
| idempotencyKey | No |