add_node
Add or update a node in a LangGraph project, automatically making the first node the entry point. Use config to set the node's function, or pass entry_point to reassign which node starts the graph.
Instructions
Add or update a node. config['function'] names the callable in nodes.py (defaults to the node id if omitted).
The first node added to a project becomes the entry point automatically; pass entry_point=True to (re)designate a later node instead.
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": {
"project_dir": "<project_dir>",
"id": "<id>"
},
"name": "add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| type | No | python | |
| config | No | ||
| entry_point | No | ||
| project_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||