port_info
Inspect a specific TCP port to identify the dev server using it, or confirm the port is free. Helps resolve port conflicts before starting or stopping a process.
Instructions
Read-only. Inspects a single TCP port and reports the dev server holding it (same fields as list_dev_servers). If nothing is listening, or the listener is not a recognised dev process, returns { port, status: "free" }. Useful for answering "what's on :3000?" before starting or killing something.
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": {
"port": "<port>"
},
"name": "port_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | TCP port number, 1–65535, e.g. 3000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| status | No |