lantern_free
Reclaims an occupied TCP port by identifying whether a Docker container or host process holds it, then terminating that process cleanly without breaking Docker networking.
Instructions
Safely reclaims an occupied TCP port. Checks whether the port is held by a Docker container or host process and terminates it cleanly without breaking Docker networking.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"port": "<port>"
},
"name": "lantern_free"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | TCP port number to free (1-65535) | |
| force | No | Force kill if graceful shutdown fails |