Write files into a flow
flow_write_flow_filesCreate or overwrite files in a flow's tree (full contents, not diffs). Engine-owned paths are rejected — see get_scaffold. Every write lands as a restorable checkpoint and is narrated in the builder chat. If a live preview is running, follow up with start_preview to sync it. Validate with validate_flow before deploying. If a call returns an error the files may STILL have landed (and a very large payload can truncate mid-file) — re-read with read_flow_files before retrying, never blind-retry. Because writes replace whole files, keep files small and single-purpose so an edit can't clobber unrelated working code.
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": {
"flowId": "<flowId>",
"files": "<files>"
},
"name": "flow_write_flow_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | One-line summary of the change, shown in the builder chat. | |
| agent | No | ||
| files | Yes | ||
| flowId | Yes |