map_import_nmap
Import nmap scan results (XML) to automatically create network diagram nodes with open ports and inferred device types.
Instructions
Parse nmap scan output (XML from nmap -oX) and create nodes with their open ports. Auto-infers node type from OS fingerprint + port profile (router/switch/firewall/server/printer/etc.). Provide either raw xml OR pre-parsed hosts[] — hosts takes priority when both are given. Nodes are auto-arranged in a grid. Returns {count, ids}.
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": "map_import_nmap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | Raw nmap XML output (use `nmap -oX -`) | |
| hosts | No | Alternative: pre-parsed hosts [{ip, hostnames[], ports[{portid, protocol, service}], osMatch}] |