port_forwarding
Configure TP-Link router port forwarding: list, add, update, or remove virtual server, port-triggering, and DMZ rules, with dry-run plans before applying changes.
Instructions
Port forwarding. kind=vs (virtual servers, default) | pt (port triggering) | dmz. action=list | add (rule={name, external_port, internal_port, ip, protocol ALL|TCP|UDP, enable}) | update (name, rule) | remove (name); for dmz: list | enable (ip) | disable. Overlapping external ports are refused.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "port_forwarding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | ||
| kind | No | vs | |
| name | No | ||
| rule | No | ||
| apply | No | false (default) = dry run: show the plan, diff, warnings and risk, send nothing. true = send it. | |
| action | No | list | |
| reveal | No | Show secrets (passwords/keys) unmasked. | |
| router | No | Which router (see router_status 'routers'); default main. | main |
| confirm_token | No | Required with apply=true for CRITICAL changes: the token from the dry run (valid 5 minutes, bound to the exact plan and current router state). |