map_import_csv
Import network nodes from a CSV file into your diagram. Automatically detects columns for name, IP, type, ports, and notes, then lays them out in a grid.
Instructions
Import nodes from CSV. Auto-detects columns from the header row (name/ip/type/ports/notes — case-insensitive, aliases like hostname/description/host_ip accepted). Ports field accepts 'port/protocol,port/protocol' (e.g. '22/tcp,80/tcp') or bare port numbers (default tcp). Nodes laid out in a 6-column grid. Returns {count, ids}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | CSV content with header row (RFC 4180-lite: quoted fields, escaped "", UTF-8 BOM tolerated) | |
| columns | No | Optional explicit column mapping: {name: 0, ip: 1, type: 2, ports: 3, notes: 4} — overrides auto-detect; missing keys default to -1 |