Add edge
add_edgeConnect two existing nodes in a mapnotes graph by specifying source and target IDs; an edge ID is generated if omitted.
Instructions
Connect two existing nodes. The id is generated if omitted.
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": {
"source": "<source>",
"target": "<target>"
},
"name": "add_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| label | No | ||
| style | No | Id of an edge style from the graph styles | |
| source | Yes | Source node id | |
| target | Yes | Target node id | |
| properties | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edge | Yes | ||
| file | Yes | Current graph file; null when the graph is in memory only |