graph-neighbors
Find connected nodes in a knowledge graph by specifying a node ID or label, exploring relationships up to a defined depth and limit. Supports semantic analysis and concept mapping.
Instructions
Get neighbors of a node (by id or label/type) up to a depth and limit.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
depth | No | ||
limit | No | ||
node | Yes |
Input Schema (JSON Schema)
{
"properties": {
"depth": {
"type": "number"
},
"limit": {
"type": "number"
},
"node": {
"anyOf": [
{
"type": "number"
},
{
"properties": {
"label": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"label"
],
"type": "object"
}
]
}
},
"required": [
"node"
],
"type": "object"
}