init_project
Scaffold a new spec-driven LangGraph project by generating spec.yaml, nodes.py stub, and init.py.
Instructions
Create a new spec-driven LangGraph project: spec.yaml, nodes.py stub, init.py.
project_dir: directory to create/use (created if missing; error if a spec.yaml already exists there). name: project/graph name, stored in spec.yaml. state_fields: optional initial state fields, each {name, type, reducer?, default?}.
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>",
"name": "<name>"
},
"name": "init_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| project_dir | Yes | ||
| state_fields | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||