Contents

Push Workflow Graph

push_workflow_graph · Tools · Workflows

Replace a workflow's entire graph, its nodes, edges and frames, with one document, saved as a new version

Parameters

NameTypeRequiredDescription
base_revisionstringNoThe `revision` pull_workflow_graph returned with the graph. When the workflow changed since, the push is refused with the current revision and nothing is written.
graphobject | stringYesThe whole graph, as pull_workflow_graph returns it in `graph`, as the JSON object or as its JSON text. Replaces the stored nodes, edges and frames.
version_namestringNoWhat the change was, in plain words: one line, at most 120 characters. Omitted or blank, the version is unnamed.
workflow_idstringYesWorkflow slug or id ULID

Push Workflow Graph Tool#

push_workflow_graph replaces a workflow's entire graph, its nodes, edges and frames, with one JSON document, and saves it as a new version.

When to Use#

The agent uses it to work on a workflow efficiently as a file on disk: pull the graph with pull_workflow_graph, edit the file, and push it back. It suits a change that touches much of the graph, or a workflow the agent keeps in git. For an ordinary edit, the per-node tools (add_workflow_node, edit_workflow_node, connect_workflow_nodes, and the delete tools) are the normal path. A new workflow is made with create_workflow first.

Parameters#

Parameter Type Required Description
workflow_id string Yes Workflow slug or id ULID
graph object or string Yes The whole graph, in the shape pull_workflow_graph returns: nodes, edges and frames. Sent as the JSON object or as its JSON text, such as a file's contents read verbatim
base_revision string No The revision the graph was pulled at (RFC 3339). When the workflow changed since, the push is refused with the current revision and nothing is written. Omitted, the push overwrites whatever is there
version_name string No What the change was, in plain words: one line, at most 120 characters. Omitted or blank, the version is unnamed

Returns#

Field Type Description
success boolean true when the graph was saved
workflow_id string The workflow's slug
version_id string The id ULID of the version this push created
revision string The workflow's new revision; the base_revision for the next push
validation_errors object Diagnostics for incomplete configuration, keyed by node id; those nodes are saved anyway
warnings array The saved graph's validation warnings, and any from reinstalling the workflow's triggers

Example Scenario#

A coding agent pulled invoice-intake into workflows/invoice-intake.json, added a step that retries failed Gmail sends, and pushes the file back:

{
  "workflow_id": "invoice-intake",
  "graph": { "nodes": [ … ], "edges": [ … ], "frames": [ … ] },
  "base_revision": "2026-11-17T09:12:44.103Z",
  "version_name": "Retry failed Gmail sends"
}

The Versions tab shows "Retry failed Gmail sends", and the agent keeps the returned revision for its next push.

Notes#

  • nodes, edges and frames replace the stored ones as a whole: a node left out of the document is removed, and a document without frames leaves the workflow with no frames
  • Every push creates a new version, even when the graph is identical to the current one. Each push is one entry in list_workflow_versions, and restore_workflow_version returns to the graph before it
  • A node carries no position: push lays out the whole graph, and a document whose node has a position is refused, naming the field
  • The graph is checked as the per-node tools check an edit. A document that is not a graph, as an object or as JSON text, is refused, naming the field by its path, such as graph.nodes[1].label. Unreadable nodes or edges, unknown node types, duplicate node ids, a config field the node type does not have (one the stored node did not already carry), edges to missing nodes, and invalid frames are refused with the diagnostics and remediation the per-node tools return. Refused, nothing is written
  • Incomplete configuration, unconnected inputs, and an edge to a socket the node does not have are saved, and reported in validation_errors and warnings. Read warnings before treating a push as a clean graph
  • Push changes only the graph: the workflow's name, description, enabled state and timeout stay with update_workflow_config, and a pin stays where it is until bump_pinned_workflow_version or pin_workflow_version moves it
  • Risk: write