Skip to content

lb_get_context

Retrieves the most relevant nodes for a given topic. Designed for use at the start of an AI-assisted work session — it surfaces what you already know about a subject before you start writing or coding.

ParameterTypeRequiredDefaultDescription
topicstringYesThe topic or question to retrieve context for
para_item_idstringNoExplicit PARA item ID to scope results to
working_directorystringNoFile system path used for automatic PARA item detection
limitnumberNo20Number of nodes to return (1–50)
{
"nodes": [...],
"matched_para_item": {
"id": "...",
"label": "...",
"category": "projects"
}
}

matched_para_item is present only when a PARA item was resolved — either because para_item_id was supplied, or because auto-detection succeeded. It is null otherwise.

When working_directory is provided and para_item_id is not, the tool attempts to infer the relevant PARA item from the path:

  1. Extracts the last directory component (e.g., loombrain from /Users/user/projects/loombrain).
  2. Normalizes the name — lowercases, strips hyphens and underscores, collapses whitespace.
  3. Fuzzy-matches the normalized name against all active PARA item slugs and labels.
  4. If a confident match is found, scopes the context retrieval to that item automatically.

This means calling lb_get_context from a project directory can automatically restrict results to the matching project in your graph, with no explicit configuration.