add_edge
Adds an edge between LangGraph nodes to define control flow. Supports simple transitions to a target node or END, and conditional routing via a router function and path mapping.
Instructions
Add an edge between nodes.
Simple edge: set to (a node id, or "END").
Conditional edge: set condition (the name of a router function in
nodes.py) and paths (a mapping of the router's return value to a
target node id or "END").
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>",
"from_": "<from_>"
},
"name": "add_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from_ | Yes | ||
| paths | No | ||
| condition | No | ||
| project_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||