find_free_port
Find free local ports by binding them, optionally within a range, so you can start a server on another port instead of stopping the process holding one.
Instructions
Find ports that are free right now, verified by binding them, optionally within a range (e.g. 3000-3999). Use it to start a server on another port instead of stopping what holds one.
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 |
|---|---|---|---|
| count | No | how many free ports (default 1) | |
| range | No | where to look, e.g. 3000-3999 (default: from 1024 up) |