find_shortest_path
Find the shortest path between two entities in a knowledge graph by specifying source and target, with optional direction and relation type filters to control the search.
Instructions
Find the shortest path between two entities in the knowledge graph
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_shortest_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source entity name | |
| target | Yes | Target entity name | |
| direction | No | Direction of traversal (default: both) | |
| relationTypes | No | Optional filter for relation types to follow |