Batfish Get Topology
batfish_get_topologyRetrieve a snapshot's network topology as nodes and edges, including Layer 3 links or routing adjacencies, to analyze connectivity and routing relationships.
Instructions
Return the topology graph of a snapshot as nodes/edges.
kind="layer3"(default): L3 links fromlayer3Edges(node — interface <-> interface — node, so edges carry atitlelike"r1 (Gi0/0) <---> r2 (Gi0/0)").kind="routing": routing adjacencies frombgpEdges.
Returns {kind, snapshot, node_count, edge_count, nodes, edges}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "batfish_get_topology"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | layer3 | |
| network | No | ||
| snapshot | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||