get_backlinks
Find all indexed sections that link to a target document, revealing which wiki pages reference it. Use this to identify impacted pages when a source changes and get source file, section, and link details.
Instructions
Find all sections that link TO a given document (inverse reference graph). Useful for the LLM Wiki pattern: when a source changes, find which wiki pages reference it. Output: list of {source_file, source_section, source_section_id, link}. Counts links found inside indexed docs only.
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": {
"repo": "<repo>",
"doc_path": "<doc_path>"
},
"name": "get_backlinks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository identifier (owner/repo or just repo name) | |
| doc_path | Yes | Target document path to find backlinks for (e.g., 'raw/article.md' or 'wiki/concepts/auth.md') |