atlas_save_workflow
Save validated YAML as a workflow file, blocking unsaved changes. New IDs must be free; updates require the previous file hash to prevent silent overwrites.
Instructions
把校验通过的 YAML 保存为 workflows/<workflow_id>.yaml(零成本)。
校验不过不保存。新建要求 id 未被占用;更新必须传 expected_sha256 (上次读到的文件哈希)——文件被改过就拒绝,防静默覆盖。 返回 file_sha256(下次更新用它)与 spec_fingerprint。
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": {
"workflow_id": "<workflow_id>",
"yaml": "<yaml>"
},
"name": "atlas_save_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yaml | Yes | ||
| workflow_id | Yes | ||
| expected_sha256 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |