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}.
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}] |