graph_add_edge
Adds a named link between two nodes.
Links a source node to a target node with a relation name.
- Tool name
- graph_add_edge
- Group
- Memory
- Risk
- low
- Needs approval
- never
- Approval rule
- No approval.
- Allowed in scheduled jobs
- No
- Default
- on
Parameters
| Name | Type | Required | Default | Meaning | Limits |
|---|---|---|---|---|---|
| source | string | Yes | Node id the link starts from. | ||
| target | string | Yes | Node id the link points to. | ||
| relation | string | No | related | Name of the link, such as related. |
Returns
A confirmation.
Example (made up for this page)
{
"target": "demo"
}Linked demo-project -> notes (related).Side effects
- Writes the graph JSON file.
How it can fail
| When | What the agent sees |
|---|---|
| A node id is missing | An error text |
See also:Memory tools
Checked against the source at commit f4fd89f on 29 Oct 2026. Everything here is merged on the main branch; no release has been tagged yet. The source is private, so these pages are the public description.