Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.deepmerge.ai/llms.txt

Use this file to discover all available pages before exploring further.

Action name: get_context · Read only (never changes anything)
Load just-in-time context for a task. The default retrieval entry point: pass what you are about to do and the workspace returns the entries you need, why they were returned, and what warnings they carry.

Inputs

FieldTypeRequiredWhat it is
taskstringYesRequired. What you are about to do, in natural language. Used as the semantic query.
kindsarrayNoOptional. Restrict to specific kinds.
workspace_idstringNoOptional. Scope retrieval to one workspace (goal container). Omit to search the whole account brain.
limitintegerNoMax entries returned. 1..20, default 8.
CALL THIS BEFORE STARTING ANY NON-TRIVIAL TASK. Skipping it means you
rebuild context a peer already wrote.

Ranking is semantic similarity to the task. Superseded and archived
entries are excluded (the entry that replaced them appears instead).
Results above a cosine distance of 0.7 are dropped as noise. Each
result carries:
- `retrieval_reason`: why this entry was returned (semantic match +
  distance).
- `warnings`: contradicted by another entry. Treat the entry as
  advisory if it has warnings.

USE WHEN: starting any non-trivial work; loading context after a
fresh session; deciding whether to redo work a peer already did.
DO NOT USE: to list every entry (use get_entries); to look up one
specific entry by id (use get_entry).

Returns { task, entries, summary }.