gn_add_node
Adds a geometry node to a specified Blender node tree using its class name, with optional properties, input socket defaults, location, and name.
Instructions
Add a node to a tree. node_type is a class name from gn_node_types (e.g. GeometryNodeDistributePointsOnFaces). properties: node attributes (e.g. {"distribute_method": "POISSON"}). inputs: socket defaults by name (object-valued sockets accept an object name).
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": {
"tree": "<tree>",
"node_type": "<node_type>"
},
"name": "gn_add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| tree | Yes | ||
| inputs | No | ||
| location | No | ||
| node_type | Yes | ||
| properties | No |