hosts_clear
Remove managed entries from /etc/hosts to cleanly switch to a new target. Only Kali-MCP managed entries are affected; system entries remain unchanged.
Instructions
Remove ALL managed /etc/hosts entries.
Clears only the Kali-MCP managed section. System entries (localhost, etc.) are never touched. Useful when switching to a completely new target.
Returns: Count of removed entries
Example: hosts_clear()
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |