ds_update_workflow
Updates workflow definitions with full task and relation replacement, preserving code and auto-incrementing version; fallback when targeted DAG edits cannot handle the change.
Instructions
Update workflow definition (PUT method, preserves code, auto-increments version).
This is a fallback when ds_modify_workflow_dag cannot handle the change. Supports full task definition override with complete replacement.
Args: project_name: Project name workflow_code: Process-definition code task_definitions: Task definition list (list or JSON string) task_relations: Task relation list (list or JSON string) locations: Node coordinates (list or JSON string, default "[]") name: Workflow name (empty = keep original) description: Description (empty = keep original) auto_offline: Auto-offline before update (default True) auto_online: Auto-online after update (default True)
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_name": "<project_name>",
"workflow_code": "<workflow_code>",
"task_definitions": "<task_definitions>",
"task_relations": "<task_relations>"
},
"name": "ds_update_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| locations | No | [] | |
| auto_online | No | ||
| description | No | ||
| auto_offline | No | ||
| project_name | Yes | ||
| workflow_code | Yes | ||
| task_relations | Yes | ||
| task_definitions | Yes |