htb_hosts_clean
Remove managed host entries by exact tag, matching all patterns, or exclusion keep-list; use dry-run to preview changes before editing /etc/hosts.
Instructions
Remove managed host entries. No args wipes the whole block; tag removes one box by its exact tag; match removes the entries htb_hosts_select would return for the same patterns (every pattern must match); exclude is the inverse keep-list, removing everything EXCEPT entries matching ANY pattern. The three are mutually exclusive. Set dry_run to preview what would go without touching the file.
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": "htb_hosts_clean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Remove only entries with this exact tag | |
| match | No | Remove entries matching EVERY pattern (as htb_hosts_select) | |
| dry_run | No | Report what would be removed without changing the file | |
| exclude | No | Fuzzy patterns to KEEP; everything else is removed |