passwall2_switch_node
Switches PassWall 2 to a specified node index with a write-safety gate: snapshots the current node, reloads the service, probes DNS, and rolls back automatically if it fails.
Instructions
WRITE (gated): switch PassWall 2 to a node index. Requires PASSWALL2_ALLOW_WRITE=1 and confirm=true. Snapshots the previous node, reloads the service, probes DNS, and restores on failure.
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": {
"index": "<index>"
},
"name": "passwall2_switch_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| confirm | No |