clash.profiles.activate
Activate a Clash profile with two-step confirmation to change network configuration securely. Preview first to receive a nonce, then confirm to apply.
Instructions
Activate a Profile through Clash Verge itself. Strong two-step confirmation is required because this may change the active network configuration. First call with confirmed=false to receive a nonce, then retry with confirmed=true and confirmNonce.
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": {
"uid": "<uid>",
"confirmed": "<confirmed>"
},
"name": "clash.profiles.activate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Target Profile UID | |
| confirmed | Yes | False for preview; true for execution | |
| timeoutMs | No | Timeout in ms, clamped to [1000, 60000] | |
| confirmNonce | No | One-time nonce returned by preview |