get_links
List the links a document points to and the backlinks pointing to it, so you can find what relies on a doc before changing or moving it. Filter by in or out direction.
Instructions
List the [[wikilinks]] around a document: links, the docs it points to, and backlinks, the docs that point to it, e.g. to find what relies on a doc before changing or moving it. Works on .md and .html docs. direction keeps one side, to spare a long list: out for links only, in for backlinks only (default both). A doc you may not read is left out. Use get_mind_topology for the whole graph's shape, brief to read the sections linked around a topic.
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": {
"path": "<path>"
},
"name": "get_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the .md or .html, e.g. notes/example.md. | |
| direction | No | out: only `links`; in: only `backlinks`; both: the two. | both |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| links | No | ||
| backlinks | No |