Retrieve Context
retrieve_contextFetches FTS5-seeded, PageRank-expanded context for a natural-language task from a local code graph and Obsidian vault, flagging MUST_READ, DANGER, and items to test before changes.
Instructions
The main entry point: FTS5-seeded, PageRank-expanded context for a natural-language description of a task. Read MUST_READ first, note DANGER, expect MAY_CHANGE/MUST_TEST before you consider a change done.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "retrieve_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| vault | No | ||
| seed_k | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |