calendar.entities.link
Create or update a directed dependency between two calendar entities, or remove one. Linking entities enables conflict detection across connected events.
Instructions
SIDE-EFFECTFUL. Create or update a directed dependency edge between two entities (e.g. "A feeds B"), or remove one with remove: true. Idempotent — upserts the label on repeat calls; removing an absent link is a no-op. Used by calendar.events.conflicts/calendar.events.list to flag overlaps across connected entities (one hop, either direction). Returns {link} or {removed}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target entity — name (case-insensitive) or numeric id. | |
| from | Yes | Source entity — name (case-insensitive) or numeric id. | |
| label | No | Freeform label for the relationship, e.g. 'feeds', 'depends on'. | |
| remove | No | If true, remove the link instead of creating/updating it. |