find_path
Finds the shortest network path between two devices using BFS on the LLDP-discovered topology.
Instructions
Find the shortest path between two devices in the topology.
Uses BFS on the LLDP-discovered topology to find the shortest path between two network devices.
Args: source: Source device name target: Target device name
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": {
"source": "<source>",
"target": "<target>"
},
"name": "find_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| target | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |