edit_tunnel
Modify existing SakuraFrp tunnel settings with confirmation; only provided fields change, and the tunnel is restarted so updates take effect.
Instructions
修改已有隧道配置。写操作,必须传 confirm: true。严格按「停隧道 → 改云端配置 → 重新启动 → 验证上线」四步执行:在线直接改云端不会生效,frpc 不会热重载配置。只覆盖显式传入的字段,其余沿用云端当前值。
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": {
"tunnel": "<tunnel>"
},
"name": "edit_tunnel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | 新隧道名(3-20 字符字母数字下划线) | |
| node | No | 新节点 id | |
| note | No | 备注 | |
| type | No | tcp / udp / http / https | |
| extra | No | 附加信息 | |
| remote | No | 新远端端口 | |
| tunnel | Yes | 隧道 id 或隧道名 | |
| confirm | No | 确认执行写操作 | |
| local_ip | No | 新本地地址 | |
| local_port | No | 新本地端口 |