routeros-command-tree
Installation
SKILL.md
RouterOS Command Tree & /console/inspect
Overview
RouterOS organizes all configuration and commands in a hierarchical tree. Every path in the CLI
(like /ip/address/add) corresponds to a node in this tree. The /console/inspect REST endpoint
lets you programmatically explore the entire tree — this is how tools like restraml (RAML/OpenAPI
schema generator) and rosetta (MCP command lookup) build their databases.
The Command Tree Structure
RouterOS's command hierarchy has four node types:
| Node Type | Meaning | Example |
|---|---|---|
dir |
Directory — contains child paths | /ip, /system |
path |
Path — a navigable level (often has commands) | /ip/address, /interface/bridge |
cmd |
Command — an executable action | add, set, print, remove, get, export |
arg |
Argument — a parameter to a command | address=, interface=, disabled= |