render_python
Convert a structured YAML spec into idiomatic LangGraph Python code using deterministic Jinja2 templating. Blocks on spec validation errors to guarantee consistent output.
Instructions
Render the current spec into idiomatic LangGraph Python (graph.py by default).
Deterministic Jinja2 templating — no LLM involved, same spec always produces the same code. Blocks if the spec has validation errors (warnings still allow rendering).
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": "render_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | No | ||
| project_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||