list_ports
List TCP ports listening in WSL to identify where a development server is reachable from Windows.
Instructions
List TCP ports listening in WSL (via ss, falling back to /proc/net/tcp). Useful to find where a dev server is reachable (WSL2 forwards localhost to Windows).
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": "list_ports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| distro | No |