write_workflow
Validate and write ComfyUI workflow JSON files to Spark. Checks that content includes nodes and links arrays before saving.
Instructions
Write a workflow JSON file to spark. Validates that content parses as JSON with nodes+links arrays.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workflow filename, must end with .json | |
| content | Yes | Full JSON content | |
| overwrite | No | Required to replace an existing file |