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.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
topic | string | Yes | — | The topic or question to retrieve context for |
para_item_id | string | No | — | Explicit PARA item ID to scope results to |
working_directory | string | No | — | File system path used for automatic PARA item detection |
limit | number | No | 20 | Number of nodes to return (1–50) |
Response
Section titled “Response”{ "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.
Auto-detection
Section titled “Auto-detection”When working_directory is provided and para_item_id is not, the tool attempts to infer the relevant PARA item from the path:
- Extracts the last directory component (e.g.,
loombrainfrom/Users/user/projects/loombrain). - Normalizes the name — lowercases, strips hyphens and underscores, collapses whitespace.
- Fuzzy-matches the normalized name against all active PARA item slugs and labels.
- 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.