Add a node to a MindSpark map
add_nodeAdd a new node to a mind map under a specified parent node. Retrieve the parent node's ID using get_map before adding.
Instructions
Add a single new node under an existing node in a map. Use get_map first to find the parent node's id.
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": {
"mapId": "<mapId>",
"parentId": "<parentId>",
"text": "<text>"
},
"name": "add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | Show a task checkbox on the node. "done" also renders the text struck through. | |
| text | Yes | Node text. Supports basic HTML tags: <b>, <i>, <u>, <s>. For multi-line content (used with listType), separate lines with <br> or \n. | |
| color | No | Optional hex color for the node. For a look that matches MindSpark's own palette, use one of its built-in light node colors: #ffe2d6 (peach), #ffedc2 (cream), #dcefce (mint), #cfe9e6 (teal), #d8e0fb (lavender), #efd9f2 (pink), #e9e2d6 (beige) — or any other hex value for a custom color. | |
| mapId | Yes | ||
| listType | No | Render the node's text as a bulleted (ul) or numbered (ol) list — each line becomes one list item. | |
| parentId | Yes | id of the node this new node should nest under |