hosts_clear
Clears all managed /etc/hosts entries without touching system entries. Resets the managed section to start fresh with a new target, returning the number of removed entries.
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 |