Identify the platform/vendor of a network device by probing `show version`.
REQUIRES a reachable device: pass its management IP or hostname in `host`.
NEVER pass a vendor name, model or free text (e.g. 'aruba instant aps') as
`host`, and do NOT use this tool for documentation-only questions.
For a "how do I configure X on <vendor>" question that is not about a
specific reachable device, call skill_lookup(query=..., platform=<alias>)
directly instead.
Returns the platform id (ios, nxos, junos, comware, aos, aoscx, iap, aos8,
fortios) or 'unknown'.
Set `include_version=True` to also append the raw `show version` output as
clearly-labelled EVIDENCE (platform + version in one call). Default off.
Uses the vendor manifests (skills/platform/*/_manifest.json) — first regex match wins.
To target a specific connector instead of the default one, pass its
CONNECT or SUPPORT token as `connect_token` (never inside `host`).
Identity/tenant comes from the X-Auth-Token header — not a tool argument.
Parametershostrequiredconnect_tokeninclude_version
Ask a question about a network device (switch, router, AP, firewall) in natural language.
Uses skills + show version. It DETERMINES the device's platform itself (via
`show version`) and scopes the skill lookup to it — prefer this over
`skill_lookup` with a guessed platform for any question that names a concrete
device (IP/hostname/CIDR). Best quality, but slower.
Pass the device IP as `host` parameter if known. If omitted, the IP will
be extracted from `text` automatically.
To target a specific connector instead of the default one, pass its CONNECT
or SUPPORT token as `connect_token`; alternatively prefix the text with
'^TOKEN <token>'. Identity/tenant comes from the X-Auth-Token header.
Set `include_raw=True` to also append the raw CLI output of the executed
command as clearly-labelled EVIDENCE (capped 64 KB head+tail) — useful to
cite/verify the answer. Default off.
Set `include_docs=False` to omit the signed `> Source:` documentation links
(they expire after ~1 h) — useful for agents that only want the answer.
Parametershosttextrequiredinclude_rawinclude_docsconnect_token
Execute a CLI command and return raw output. Faster than netloop_ask.
Use when you know the exact CLI command for this platform.
Pass the device IP as `host` parameter if known. If omitted, the IP will
be extracted from `text` automatically.
To target a specific connector instead of the default one, pass its CONNECT
or SUPPORT token as `connect_token` (or prefix the text with '^TOKEN <token>').
Parametershosttextrequiredconnect_token
Ask a question about a network device — uses skills ONLY for interpreting
the output. Command generated without skills (standard show commands).
Pass the device IP as `host` parameter if known. If omitted, the IP will
be extracted from `text` automatically.
Set `include_raw=True` to also append the raw CLI output (evidence, 64 KB cap).
Set `include_docs=False` to omit the signed `> Source:` documentation links.
Parametershosttextrequiredinclude_rawinclude_docsconnect_token
Show the network path from a device up to the Internet as ASCII + JSON.
Use this for "show me the path / topology / uplink chain of <device>"
questions; do not use netloop_ask for that.
NEVER draw, sketch or reconstruct a network diagram yourself — the diagram
shown to the user must be the output of THIS tool, verbatim. Do not build a
topology from raw CLI output (show lldp/cdp neighbors, etherchannel,
spanning-tree, route/ARP tables) and do not re-label or redraw this tool's
output. If the device cannot be reached or this tool returns an error, say so
— never substitute a self-made diagram.
IMPORTANT: when you show the diagram to the user, wrap it in a ```text
fenced code block (plain, no highlighting) — **never** ```python (or any
other language tag) — and keep the ASCII exactly as returned. Show the JSON,
if you include it, in a ```json block so it stays highlighted.
`host` is the source device (management IP/hostname). **Leave `to` empty for
the path up to the Internet** (uplink chain → firewall/router → cloud):
`netloop_path(host=<device>)`. Never pass a public IP (e.g. `8.8.8.8`) as
`to` — that is not a device on the network. Set `to=<ip|mac>` ONLY to ask
**where a LOCAL end device hangs**: the destination is then shown as a port
annotation (`<port> -> <mac> (<ip>)`), not as its own box, and only the
involved devices are shown (no Internet hop).
`discovery` is `auto` (L2/LLDP first, then routing), `l2`, or `l3`.
`format` is chosen by the caller when omitted: a **human** via LibreChat gets
the **full ASCII diagram** - **no JSON by default**; an **agent / naked MCP /
A2A** caller gets the **short form plus the JSON** contract. JSON is delivered
only when it is **explicitly requested**: `format=full` (big diagram),
`compact` (short tree), `json`, `both` (full + JSON) or `compact_json`
(short + JSON). Do not paste a JSON blob into a human chat on your own
initiative; when you do include it (explicit request, or an agent caller),
put it in a ```json block so i
Parameterstohostrequiredformatrefreshmax_hopsdiscoveryinclude_fanconnect_tokeninclude_downlinksinclude_redundant_uplinks
Network vulnerability check: is this device affected by known advisories?
Reads the device's platform + firmware version with the existing probe
(`show version` / `display version` / `get system status`) and matches it
against the **ENISA EUVD** (European Union Vulnerability Database) — one
advisory source for Cisco, Aruba (switches + wireless), Juniper, Fortinet
(+ a long tail). Result is a **deterministic verdict**:
`affected` | `not_affected` | `unknown`, with per-advisory CVE id, severity
(CVSS), CISA-KEV flag and the advisory link.
Use this for "is <device> affected by known CVEs / vulnerabilities?",
"are there security advisories for this firmware?", "is the firmware
patched?".
**Informational only, currently in a test phase** — it is NOT a scan, NOT a
penetration test, NOT a compliance/audit or patch certificate, and it never
says a device is safe: "no matching advisories" is explicitly **not** proof
of absence (the source can be incomplete for a platform, and the verdict is
then `unknown` on purpose). Third-party advisories are cited by link, not
mirrored.
**Output (caller-aware default):** a human in the chat (email identity) gets
the **human-readable markdown table** (the chat renders it as a real table);
an **agent** (token identity) gets the **JSON contract** `netloop.vuln/v1`
(with CVSS vector, KEV flag and EPSS per finding). The table has fixed CVSS
bands critical/high/medium/low/unknown with a traffic-light emoji and one row
per CVE linked to the advisory: `CVE | CVSS | Exploitability | Description`
— the severity is the band heading, `Exploitability` explains the attack
vector + KEV flag in plain words and the description is a short complete
sentence (there is no recommendation column: EUVD states no fix release).
Plus the source + terms links, an assessment sentence for this device and the
guardrail block.
Use the table **as returned** — do not re-sort, re-group or trim it, keep the
emoji and the CVE links, and always carry the source + retrieva
Parametershostrequiredformatrefreshverboseall_findingsconnect_token
netloop_submit_credential
Submit an E2E-encrypted credential blob for an open credential challenge.
Use this after a tool result returned `status: "credentials_required"`.
There is deliberately **no** username/password argument: the encrypted blob
is the only accepted form (design decision C-4). `blob` is the base64 output
of the snippet from that response — RSA-OAEP-SHA256 of `username<NUL>password`.
After it is accepted, **re-send your original request** (the credentials are
now cached at the connector).
Parametersblobrequiredchallenge_idrequired
Look up the hardware vendor (manufacturer) for one or more MAC addresses.
Accepts MACs in any common format (colons, dashes, Cisco dotted, no separators).
Returns JSON with the vendor per MAC; unknown MACs are reported as unknown.
MACs are NOT logged - only their SHA-256 hashes go into the audit log.
Uses the official IEEE OUI registry (MA-L/MA-M/MA-S), refreshed at most once
per 24h. No connect token required.
Parametersmacsrequired
Expand a network acronym/abbreviation from the vendor documentation
(e.g. 'BGP' -> 'Border Gateway Protocol'), together with the source document
when available.
Deterministic dictionary lookup — no device, no connect token, not a fuzzy
search. **Pass `platform` whenever the device or platform is known** (vendor
key or alias, e.g. 'aoscx', 'aos', 'ios', 'junos', 'Aruba CX'): some acronyms
are defined differently per vendor, and without `platform` such a term is
returned as a per-vendor disambiguation instead of a single answer.
Parametersacronymrequiredplatform
Search the netloop skill DB (skills/platform/<vendor>/<model> + _index.json) for networking knowledge.
Returns the most relevant sections from skill file(s).
Searches multiple related files when the best match is small or a sibling
file covers additional query terms (e.g. general IGMP theory + MLD snooping
for an "igmp snooping" query).
Call this when you need vendor- or topic-specific networking knowledge:
platform basics, CLI commands, best practices, troubleshooting steps.
Use multiple calls for drill-down (first get platform overview,
then specific commands). Parameters:
- query: what you need (e.g. 'STP root priority', 'save config', 'VLAN trunk').
ALWAYS write the query in ENGLISH (translate the user's question) — the
skill index is English-only, so non-English queries retrieve far worse.
To verify a specific command, call skill_lookup again with the exact
command (e.g. query='show clients') — command queries match precisely.
Spell out acronyms (e.g. 'intelligent power monitoring', not just 'ipm').
- platform: OPTIONAL filter. If the user's question already names the
vendor/platform, you may OMIT it — it is auto-detected from `query`.
IMPORTANT: if the question names a CONCRETE DEVICE (IP address, hostname
or CIDR object), do NOT guess the platform — determine it from the device
first (`identify_platform(host=<IP>)`, or use `netloop_ask` which does it
for you), then pass the detected value. NEVER default to a vendor (e.g.
Cisco/IOS). If no device and no vendor is named, ask the user which
platform they mean.
If you pass it, use one of these aliases or internal IDs:
'ArubaOS-Switch' / 'ArubaOS-S' / 'AOS-S' / 'AOS-Switch' / 'AOS' / 'Aruba 2930' / 'Aruba 2530' / 'ProVision' / 'HP ProVision' → aos (default model 2930)
'ArubaOS 8' / 'Aruba 8.x' / 'Aruba Wireless' → aos8 (default model generic)
'Aruba CX' / 'AOS-CX' / 'ArubaOS-CX' → aoscx (default model 6200)
'H3C Comware' / 'C
Parametersqueryrequiredtopicplatform
Look up the documented CLI commands for a platform (deterministic index).
This is a command map built from the vendor skill docs (no LLM, no SSH).
Use it to find the right command for a platform, or to validate a command
before running it. `mode="lookup"` returns candidate commands (with the
doc section and source page); `mode="validate"` checks one command and
returns valid/unknown + the closest documented command.
Parameters:
- platform: platform ID or alias (e.g. 'aos', 'aoscx', 'Aruba CX', 'ios').
- query: natural-language intent (lookup) or the command to validate (validate).
- mode: 'lookup' (default) or 'validate'.
- limit: max candidates (default 10, max 50).
- model: optional model ID (e.g. '2530', '6200') to use that model's index;
default = the vendor's default model (the vendor-level platform ID).
A command that is NOT in the index is NOT necessarily invalid — it may be
undocumented. Say so explicitly instead of presenting it as verified.
Parametersmodelimitmodelqueryplatformrequired
Explore CLI command syntax on a device by recursively querying help.
When a command fails (e.g. 'show spanning-tree' returns '% Invalid input'),
this tool systematically strips the last token and appends the platform's
help suffix ('?' or 'help') to discover valid options.
HOW THE LLM SHOULD USE THIS:
1. Try a command via netloop_ask or netloop_fetch first
2. If the command returns an error/rejection, call netloop_drill(host, command)
3. Read the help output, pick the right sub-command, and try again
4. You may also cross-reference with netloop_commands or skill_lookup
Parameters:
- host: management IP or hostname of the device
- command: the command that failed (e.g. 'show spanning-tree')
- connect_token: optional connect/support token
- max_calls: maximum ssh queries per call (default 10, min 1, max 50)
- mode: 'privileged' (default, exec mode) or 'config' (configuration mode)
- format: 'raw' for raw help output only (default, deterministic),
'structured' to include parsed options and cross-references
Parametershostrequiredmodeformatcommandrequiredmax_callsconnect_token
Grant a support token to a worker for remote access to specified targets.
The caller must belong to a customer tenant (the demo tenant cannot grant).
MFA policy follows the caller's token (`mfa_enabled: false` allows automation
and agents; `mfa_enabled: true` requires a LibreChat session with 2FA).
The worker shows a TUI popup for manual approval (unless auto-grant is enabled).
Parameters:
- targets: list of IPs or CIDR ranges the support person can access
- duration_hours: how long the token is valid (default 1)
- reason: optional description why support is needed
- worker_id: optional specific worker connect_token (empty = any worker)
- needs_credentials: if True, the grant popup also shows username/password fields (default False)
Parametersreasontargetsrequiredworker_idduration_hoursneeds_credentials
Approve or reject a pending configuration change plan (Human-in-the-Loop).
A write operation detected in netloop_ask/netloop_fetch returns a
```netloop-hitl``` block whose `plan_id` is the value to pass here. Call with
approve=true to confirm and execute, or approve=false to reject. Set
save=true to persist the change in the same step when the plan offers an
opt-in save (otherwise the configuration is only in the running config; some
devices persist automatically). Only the caller who created the plan (same
identity) may approve or reject it; the plan expires after 5 minutes. The
result also carries a machine-readable ```json block (per-command status,
diff excerpt, `saved`).
**Device Y/N question:** if the device asks for a confirmation mid-execution
the result carries a ```netloop-hitl-confirm``` block; answer it with
`confirm="yes"` or `confirm="no"` (the `approve` flag is then ignored).
Parameterssaveapproveconfirmplan_idrequired
Recover after the device REJECTED a configuration command (HITL).
When a config command is rejected, the result ends with a recovery `[CHOICE]`
block (`RECOVER_<plan_id>` / `NORECOVER_<plan_id>`). Call this with that
`plan_id` to run the recovery: the connector drills the device (live CLI
help) and proposes a corrected command as a NEW plan — returned as a normal
```netloop-hitl``` approval block (nothing is sent until you approve it).
`cancel=true` aborts instead. Only the plan owner may recover it.
Parameterscancelplan_idrequired