add_link
Adds a one-way wiki link from a source note to an existing target note in its related-notes section, preventing broken links and duplicate entries.
Instructions
소스 노트에 [[target_id]] 링크 추가 — '## 관련 노트' 섹션에 단방향 링크.
안전장치: - 대상 노트(target_id)가 없으면 거부 (broken link 사전 방지) - 이미 링크 존재 시 변경 없음 (idempotent) - 수정 전 자동 백업 - 양방향 링크 원할 시 add_link를 양쪽으로 두 번 호출 필요
Args: id: 소스 노트 ID (링크를 추가할 노트) target_id: 대상 노트 ID (링크 대상 — 존재해야 함) display: 링크 표시 텍스트. 빈 값 시 대상 노트의 title 사용. dry_run: True 시 미리보기만 반환. 기본 False.
Returns: JSON — status (ok/error/preview), link_added, section_created, backup
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": {
"id": "<id>",
"target_id": "<target_id>"
},
"name": "add_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| display | No | ||
| dry_run | No | ||
| target_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |