extract_device_facts
Extract hostname, device role, IPv4 addresses, subnets, and VLANs from router or switch configs in EdgeOS, MikroTik, OPNsense, FastPath, or Cisco IOS formats.
Instructions
Pull the facts out of a device config: hostname, inferred role, every IPv4 address with its subnet, the subnets it sits on, and its VLANs. EdgeOS config.boot, MikroTik export, OPNsense config.xml, EdgeSwitch/FastPath, and Cisco IOS-style text.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"config": "<config>"
},
"name": "extract_device_facts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | ||
| device | No | ||
| vendor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |