Get Free Port
get_free_portFind an available TCP/UDP port within a specified range to avoid binding conflicts when starting local services.
Instructions
返回指定范围内任意一个空闲端口。
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": "get_free_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| family | No | ||
| end_port | No | ||
| protocol | No | ||
| start_port | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |