get_knowledge_graph
Retrieve a focused subgraph of nodes and edges centered on a specific entity, prioritizing nearby and well-connected nodes while respecting configurable depth and node limits.
Instructions
Retrieve a connected subgraph (nodes and edges) around one entity
label. Nodes closer to the label, and more connected nodes, are kept
first when the graph is larger than max_nodes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Entity label to center the subgraph on. | |
| max_depth | No | Maximum number of hops from the starting label. | |
| max_nodes | No | Maximum number of nodes to return. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||