Skip to content

Search Documentation

Search across all documentation pages

get_links

Get knowledge graph links for a note or memory. Returns outgoing, incoming, or both directions. Use this to explore connections between notes and memories in the knowledge graph.

Parameters#

ParameterTypeRequiredDescription
nodeTypestringrequiredType of the node to get links for: note or memory
nodeIdstring (UUID)requiredID of the note or memory
directionstringoptionalLink direction filter: outgoing, incoming, or both (default: both)
limitinteger (1-200)optionalMax links to return (default 50)

Returns#

An array of link objects, each containing the link ID, source and target node info, relationship type, and optional label.

Example#

json
{
  "tool": "get_links",
  "arguments": {
    "nodeType": "note",
    "nodeId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "direction": "both",
    "limit": 20
  }
}