Create or update a Lucky port forward
lucky_upsert_port_forwardCreate or update a port-forwarding rule by matching listen port and protocol, mapping an external port to an internal IP:port.
Instructions
Idempotently map an external listen port to an internal ip:port. Matching is by listen_port + protocol unless key is provided. Does not send Lucky's full native object.
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": {
"listen_port": "<listen_port>",
"target_ip": "<target_ip>",
"target_port": "<target_port>"
},
"name": "lucky_upsert_port_forward"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| name | No | ||
| enabled | No | ||
| protocol | No | ||
| listen_ip | No | ||
| target_ip | Yes | ||
| listen_port | Yes | ||
| target_port | Yes |