router_raw_write
Sends arbitrary operations and fields to catalogued router forms when no specific tool fits, using dry-run plans, risk warnings, and confirm tokens for CRITICAL changes.
Instructions
Escape hatch: send ANY operation + fields to a catalogued form. Risk comes from the catalog (unknown ops are CRITICAL, so need a confirm_token). FORBIDDEN ops (factory reset, config restore, firmware upload, quick setup, cloud bind) also need TPLINK_ALLOW_FORBIDDEN=1. Prefer the specific tools.
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": {
"path": "<path>",
"operation": "<operation>"
},
"name": "router_raw_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| apply | No | false (default) = dry run: show the plan, diff, warnings and risk, send nothing. true = send it. | |
| fields | No | request fields (strings; objects are JSON-encoded) | |
| reveal | No | Show secrets (passwords/keys) unmasked. | |
| router | No | Which router (see router_status 'routers'); default main. | main |
| operation | Yes | ||
| 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). |