workflow_diff_preview
Preview line-level differences between a workflow document and the current trunk version, showing unified-style changes and added/removed line counts before saving, ensuring safe, read-only validation.
Instructions
对比传入文档与 trunk 当前的行级差异(unified 风格 + 增删行数)——只读零副作用,落库前先预览。
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>",
"workflow": "<workflow>",
"actor": "<actor>"
},
"name": "workflow_diff_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | Yes | 操作者 | |
| data_dir | No | 数据根目录(缺省走 getDataDir 解析链) | |
| workflow | Yes | 待对比 workflow 文档(与 workflow_create 同构) | |
| workflow_id | Yes | workflow 标识 |