update_node
Modify a node's content, note, type, collapsed state, or model. Update node properties without invoking an LLM.
Instructions
Apply a structural update to a node (content, note, type, collapsed flag, model). No LLM call, no metering.
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>",
"nodeId": "<nodeId>"
},
"name": "update_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| mapId | Yes | The map id. | |
| nodeId | Yes | The node id (unprefixed, as returned in node trees). | |
| modelId | No | ||
| messages | No | Replace the node's content as a UIMessage array. | |
| nodeType | No | Set or rotate the node's type. | |
| isCollapsed | No | ||
| modelProvider | No |