close_connection
Closes a specific IPv4 TCP connection owned by a process without terminating the process, allowing a single connection to reset while the program keeps running.
Instructions
Closes one TCP connection (IPv4) of a process, as TCPView does: the process is not opened; the program usually reconnects if it wants to.
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": {
"pid": "<pid>",
"remote": "<remote>",
"remote_port": "<remote_port>",
"local_port": "<local_port>"
},
"name": "close_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | The process that owns the connection. | |
| remote | Yes | The other end's IPv4 address. | |
| local_port | Yes | ||
| remote_port | Yes |