clash.verge.configure_tun
Configure TUN settings in Clash config with a two-step confirmation for safety. First call gets a nonce, then confirm with nonce to apply changes.
Instructions
Configure TUN section in config.yaml (verge_clash_base owner). Strong confirmation required (call first without confirmed to get nonce, then retry with nonce). System-level verification included.
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": {
"patch": "<patch>",
"confirmed": "<confirmed>"
},
"name": "clash.verge.configure_tun"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes | TUN section patch (e.g. {enable: true, stack: "system"}) | |
| confirmed | Yes | Must be true to proceed (strong confirmation) | |
| confirmNonce | No | Nonce from first call, required for strong confirmation |