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()
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hosts_clear"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |