Add node
add_nodeCreate a node in a mapnotes graph with optional ID, label, style, position, and properties; if omitted, the ID and label are generated automatically.
Instructions
Add a node. The id is generated if omitted; the label defaults to the id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| label | No | ||
| style | No | Id of a node style from the graph styles | |
| position | No | Usually omit: the web app places new nodes next to their neighbours, and lays out graphs that have no positions at all | |
| properties | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Current graph file; null when the graph is in memory only | |
| node | Yes |