find_free_port
Locate and lease an unbound, unreserved local port that binds on IPv4 and IPv6, preventing collisions between parallel development servers.
Instructions
Return a port that is not listening, not reserved, and can be bound on IPv4 and IPv6.
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": "find_free_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| framework | No | Framework whose default port is tried first. | |
| preferred | No | First port to try. |