set_mode
Switch the mihomo/Clash Meta core between rule-based routing, global proxy, and direct connection modes to control how network traffic is routed.
Instructions
切换内核运行模式: rule=规则分流 / global=全局代理 / direct=全部直连
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": {
"mode": "<mode>"
},
"name": "set_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes |