Get Free Port
get_free_portFind an available port for your application by checking OS-level and registry availability. Optionally tests a preferred port, otherwise returns a free port from 1024-49151.
Instructions
Find and return an available port. Checks both the registry and OS-level availability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preferred_port | No | Optional specific port to check. If not provided or unavailable, searches for any free port in range 1024-49151. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||