query_local_graph
Look up entities and relationships in a local knowledge graph without LLM calls, returning cited facts with hop-based neighbors. Query by name, alias, or keyword to get sourced answers.
Instructions
Look up facts in a local Nightshift knowledge graph (no LLM call): entities matching entity_or_keyword (exact name/alias, substring, or keyword overlap) and the [subject, RELATION, object] triples around them - hop 1 touches a match, hop 2 touches a neighbour - strongest first, each with evidence (job_id, chunk_index, source file span). Searches the newest graph.json in the output dir unless graph_path names a graph.json or a coordinator output_graph.jsonl (inside the allowed roots).
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": {
"entity_or_keyword": "<entity_or_keyword>"
},
"name": "query_local_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hops | No | ||
| limit | No | ||
| graph_path | No | ||
| entity_or_keyword | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||