kb_graph
Traverse relationships from given seed IDs to return reached nodes and edges, with depth and size limits; use it to follow links from known requirements, scenarios, tests, or symbols.
Instructions
Run bounded graph traversal from one or more seed IDs across curated relationship types and return the nodes and edges reached. Use it to follow links from IDs you already have, such as a requirement to its scenarios and tests or a symbol to the requirements it implements; use kb_query to find entities by filter and kb_search to ask a question. Traversal stops at depth, maxNodes or maxEdges and then sets truncated. No mutation side effects.
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": {
"seedIds": "<seedIds>"
},
"name": "kb_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kb | No | Optional KB dependency name from .kb/dependencies.json to read, at its pinned commit, instead of this project's KB. | |
| depth | No | Number of hops from the seeds. | |
| seedIds | Yes | Entity IDs to start from, for example REQ-... or SCEN-.... Seeds are always returned as nodes. | |
| maxEdges | No | Stop and set truncated once this many edges are reached. | |
| maxNodes | No | Stop and set truncated once this many nodes are reached. | |
| direction | No | outgoing follows links from each node, incoming follows links pointing at it, both does either. | |
| entityTypes | No | Keep only nodes of these types and the edges between them; traversal still passes through other types. | |
| relationships | No | Relationship types to follow, e.g. specified_by, verified_by or implements. Omit to follow every type. | |
| workspaceRoot | No | Optional absolute path of the workspace this call is about, such as your git worktree, when it is not the server's. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| error | No | ||
| status | Yes | ||
| effects | Yes | ||
| operation | Yes | ||
| diagnostics | Yes | ||
| nextActions | Yes | ||
| kibiProtocol | Yes | ||
| resultVersion | Yes |