Get Free Ports
get_free_portsFind all free TCP/UDP ports within a specified range to prevent conflicts when starting new services or applications.
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_ports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| family | No | ||
| end_port | No | ||
| protocol | No | ||
| start_port | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |