Find nodes related to a given node through references, children, and field links. Useful for exploring node connections, finding incoming citations, and discovering graph neighborhoods.
supertag related <nodeId> [options]| Option | Description |
|---|---|
-d, --direction <dir> |
Traversal direction: in, out, or both (default: both) |
-t, --types <types> |
Relationship types to include (comma-separated) |
--depth <n> |
Maximum traversal depth 0-5 (default: 1) |
-l, --limit <n> |
Limit results (default: 50, max: 100) |
--format <type> |
Output format: table, json, csv, ids, minimal, jsonl |
--pretty |
Human-friendly table output |
--json |
JSON output |
| Type | Description |
|---|---|
child |
Node is a direct child of source |
parent |
Node is the parent of source |
reference |
Node is referenced via inline ref (<span data-inlineref-node>) |
field |
Node is connected through a field value |
Default: all types (child,parent,reference,field)
| Direction | Description |
|---|---|
out |
Outgoing connections (source → target) |
in |
Incoming connections (target → source) |
both |
Both directions (default) |
The tana_related MCP tool provides the same functionality for AI assistants:
{
"nodeId": "mMHt6NjbI9sH",
"direction": "both",
"types": ["reference", "field"],
"depth": 2,
"limit": 20
}Find all nodes connected to a topic node:
supertag related mMHt6NjbI9sH --prettyOutput:
🔗 Related to: Tana:
📤 Outgoing (1):
→ Gather Stream Storage [Vault]
Type: field
📥 Incoming (8):
← Tana (merged into main topic)
Type: reference
← Try the summary tool again for meeting summaries [todo]
Type: reference
← Send information about Tana to contact [todo]
Type: reference
← The Workflowy Timeline [resource, toread]
Type: field
← CLI todo name
Type: field
Total: 9
Find what a node references (outgoing connections):
supertag related epQm19hntCYm --direction out --prettyOutput:
🔗 Related to: Tana Input API:
📤 Outgoing (1):
→ Gather Stream Storage [Vault]
Type: field
Total: 1
Find what nodes reference a given topic:
supertag related mMHt6NjbI9sH --direction in --limit 5 --prettyOutput:
🔗 Related to: Tana:
📥 Incoming (5):
← Tana (merged into main topic)
Type: reference
← Try the summary tool again for meeting summaries [todo]
Type: reference
← Send information about Tana to contact [todo]
Type: reference
← The Workflowy Timeline [resource, toread]
Type: field
← CLI todo name
Type: field
Total: 5
Find nodes within 2 hops of the source:
supertag related mMHt6NjbI9sH --depth 2 --limit 10 --prettyOutput:
🔗 Related to: Tana:
📤 Outgoing (2):
→ Gather Stream Storage [Vault]
Type: field
→ Vault Library
Type: field (2 hops)
📥 Incoming (8):
← Tana (merged into main topic)
Type: reference
← Try the summary tool again for meeting summaries [todo]
Type: reference
← Send information about Tana to contact [todo]
Type: reference
← The Workflowy Timeline [resource, toread]
Type: field
← CLI todo name
Type: field
Total: 10 (truncated)
Find only reference-type connections (no field/child/parent):
supertag related mMHt6NjbI9sH --types reference --limit 5 --prettyOutput:
🔗 Related to: Tana:
📥 Incoming (3):
← Tana (merged into main topic)
Type: reference
← Try the summary tool again for meeting summaries [todo]
Type: reference
← Send information about Tana to contact [todo]
Type: reference
Total: 3
Get related nodes as JSON for processing:
supertag related mMHt6NjbI9sH --direction in --limit 3 --jsonOutput:
[
{
"id": "0fRqAhVFb_W4",
"name": "Tana (merged into main topic)",
"type": "reference",
"direction": "in",
"distance": "1",
"tags": ""
},
{
"id": "FLiUiuqD0i4D",
"name": "Try the summary tool again for meeting summaries",
"type": "reference",
"direction": "in",
"distance": "1",
"tags": "todo"
},
{
"id": "x7bVqUUemYpX",
"name": "Send information about Tana to contact",
"type": "reference",
"direction": "in",
"distance": "1",
"tags": "todo"
}
]Export to CSV for analysis:
supertag related mMHt6NjbI9sH --direction in --limit 5 --format csvOutput:
id,name,type,direction,distance,tags
0fRqAhVFb_W4,"Tana (merged into main topic)",reference,in,1,
FLiUiuqD0i4D,"Try the summary tool again for meeting summaries",reference,in,1,todo
x7bVqUUemYpX,"Send information about Tana to contact",reference,in,1,todo
KjL2mPqR3nVw,"The Workflowy Timeline",field,in,1,"resource,toread"
QrS4tUvW5xYz,"CLI todo name",field,in,1,Get just the node IDs for piping to other commands:
supertag related mMHt6NjbI9sH --direction in --limit 5 --format idsOutput:
0fRqAhVFb_W4
FLiUiuqD0i4D
x7bVqUUemYpX
KjL2mPqR3nVw
QrS4tUvW5xYz
Stream results for log processing:
supertag related mMHt6NjbI9sH --direction in --limit 3 --format jsonlOutput:
{"id":"0fRqAhVFb_W4","name":"Tana (merged into main topic)","type":"reference","direction":"in","distance":"1","tags":""}
{"id":"FLiUiuqD0i4D","name":"Try the summary tool again for meeting summaries","type":"reference","direction":"in","distance":"1","tags":"todo"}
{"id":"x7bVqUUemYpX","name":"Send information about Tana to contact","type":"reference","direction":"in","distance":"1","tags":"project"}# First, find the topic ID
supertag search "Security" --tag topic --format ids --limit 1
# Then find all nodes that reference it
supertag related LVKnyxTeX6ej --direction in --limit 20 --pretty# What does this meeting transcript reference?
supertag related mMHt6NjbI9sH --direction out --types reference --pretty# Export all incoming references as CSV
supertag related mMHt6NjbI9sH --direction in --format csv > citations.csv# Get IDs and process each
supertag related mMHt6NjbI9sH --format ids | xargs -I{} supertag nodes show {}# Discover nodes within 2 hops
supertag related mMHt6NjbI9sH --depth 2 --limit 50 --pretty# Only child relationships
supertag related mMHt6NjbI9sH --types child --pretty
# Only references (inline refs)
supertag related mMHt6NjbI9sH --types reference --pretty
# References and fields
supertag related mMHt6NjbI9sH --types reference,field --pretty- Maximum depth is 5 to prevent runaway traversals
- Maximum limit is 100 nodes per query
- Results are returned in BFS order (closest nodes first)
- Cycle detection prevents infinite loops in graph traversal
- Multi-hop results show the distance in the "(N hops)" suffix
- The source node is never included in results
- Empty results mean no connections of the specified type/direction exist