vault_add_links
Add annotated wikilinks to a note section (default: Related), skipping existing links and creating the section when missing.
Instructions
Add annotated wikilinks to a note's section (default: ## Related). Skips targets the note already links to (links are resolved like Obsidian: path, path suffix, then basename). Creates the section if missing. Requires exact path. Paths in this tool's output are formatted as markdown links [vault-relative-path.md](obsidian://...) so users can Cmd/Ctrl-click to open in Obsidian. Preserve the link form when relaying paths to the user; pass only the bracket text (e.g. 01-Projects/Foo/note.md) to other vault tools' path arguments, never the full markdown link.
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>",
"links": "<links>"
},
"name": "vault_add_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Exact path to the note (vault-relative, e.g., '01-Projects/MyApp/research/caching.md') | |
| links | Yes | Links to add | |
| section | No | Target section heading (default: '## Related') | |
| create_section | No | Create section if missing (default: true) |