save_workflow. Requires Editor, Admin, or Owner in the applicable workspace and a connected OAuth session.
Read get_workflow first and edit its returned code. Submit the complete updated source with the same numeric workflow_id; patches are not accepted. Success has saved: true and version status draft. The agent lifecycle is separate and may stay active while a draft is edited.
Inspect structured failure fields including error_code, error, and optional validation details. Parser errors can identify a source location. Preserve fields you did not intend to change. Saving does not publish or execute a call; URL checks can resolve hostnames.
Example: update one prompt
- Call
get_workflowwith{ "workflow_id": 42 }, using an agent ID from your workspace. - Read the returned
codestring. For an agent whose prompt isBe helpful and concise., change only that prompt toAsk one question.. Keep every node, edge, identifier, and other setting. - Call
save_workflowwithworkflow_id: 42andcodeset to the entire edited string, not just the new prompt. - Confirm
saved: trueandversion_status: "draft"before continuing. Run Validate an agent to inspect the saved definition.
Arguments
Result and errors
The schema below describes MCPstructuredContent, including the result wrapper where present. Your client may also display a text representation. Read success flags and structured errors before continuing; transport success alone does not prove the operation succeeded. Authentication, missing membership, and insufficient role can fail before a tool result is produced. See troubleshooting.
Effect: Changes state. Retry: Do not blindly repeat successful calls. Discovery annotations describe behavior; they do not grant permission or replace confirmation for consequential actions.
Input schema
Input schema
Result schema
Result schema