create_tunnel
Creates a SakuraFrp reverse-proxy tunnel under your account, mapping a local address and port to a node; requires confirm:true and starts by default.
Instructions
在账号下新建一条隧道。写操作,占用隧道额度,必须传 confirm: true。name 要求 3-20 字符仅字母数字下划线;remote 留空则自动分配远端端口。默认创建后即启动(start:false 可关)。
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": {
"name": "<name>",
"node": "<node>",
"local_ip": "<local_ip>",
"local_port": "<local_port>"
},
"name": "create_tunnel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 隧道名,3-20 字符,只能字母数字下划线 | |
| node | Yes | 节点 id,可用 nodes 工具查 | |
| note | No | 备注 | |
| type | No | tcp / udp / http / https,默认 tcp | |
| extra | No | 附加信息 | |
| start | No | 创建后是否立即启动,默认 true | |
| remote | No | 远端端口;留空自动分配 | |
| confirm | No | 确认执行写操作 | |
| local_ip | Yes | 本地地址,通常是 127.0.0.1 | |
| local_port | Yes | 本地端口 |