Manage Links
manage_linksAdd or remove graph links between pages to maintain relationships such as mentions, depends_on, or works_on. On error, search for missing page slugs before retrying.
Instructions
manage_links
Add or remove graph links between pages.
When to use: maintain relationships such as mentions, depends_on, or works_on.
When NOT to use: tagging; use manage_tags.
Returns: ok plus action/from/to.
On error: search for missing page slugs before retrying.
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": {
"action": "<action>",
"from": "<from>",
"to": "<to>"
},
"name": "manage_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target page slug. | |
| from | Yes | Source page slug. | |
| type | No | Relationship type, default `mentions`. | |
| action | Yes | Whether to add or remove the link. | |
| context | No | Short relationship context. | |
| provenance | No | Optional SourceRef provenance object. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the write succeeded. | |
| to | Yes | Target slug. | |
| from | Yes | Source slug. | |
| action | Yes | Performed link action. |