port_conflict
Diagnose EADDRINUSE errors: identify the dev server blocking a port and get 5 free nearby alternatives.
Instructions
Read-only. Diagnoses an EADDRINUSE situation: given a port, returns the dev server currently blocking it plus 5 free alternative ports nearby. Use it when a listen EADDRINUSE error fires and you want both the culprit and a port to switch to.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | The contended TCP port, e.g. 3000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| blocked_by | No | The dev-server record holding the port (see list_dev_servers), or null if actually free. | |
| alternatives | No | Up to 5 nearby free ports. |