hosts_remove
Remove a hostname from managed /etc/hosts entries to eliminate obsolete mappings. Deletes only Kali-MCP managed lines, leaving system entries untouched.
Instructions
Remove a hostname from managed /etc/hosts entries.
Only removes from the Kali-MCP managed section — system entries (localhost, etc.) are never touched.
Args: hostname: The hostname to remove (e.g., 'target.htb')
Returns: Removal result and remaining entries
Example: hosts_remove(hostname='old-target.htb')
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": {
"hostname": "<hostname>"
},
"name": "hosts_remove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |