Run a workflow — drive an MCP workflow lifecycle (execute/pause/resume/cancel) or invoke + resume a native .claude/workflows/*.js orchestration via the Workflow
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-workflow-run-b98c2b296e4b ,按照其中的说明把「workflow-run」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Run and manage a workflow on either surface.
When you need to run a persisted definition and control its lifecycle (pause/resume/cancel):
mcp__plugin_ruflo-core_ruflo__workflow_execute or mcp__plugin_ruflo-core_ruflo__workflow_run with the workflow IDmcp__plugin_ruflo-core_ruflo__workflow_status to check progress and step outcomesmcp__plugin_ruflo-core_ruflo__workflow_pause to halt at the current stepmcp__plugin_ruflo-core_ruflo__workflow_resume to continue from where pausedmcp__plugin_ruflo-core_ruflo__workflow_cancel to abort the workflowExecution modes: sequential, parallel (independent steps), conditional (branch on outcome), manual gate (pause for human approval).
.claude/workflows/*.jsWhen you need a deterministic subagent fan-out, run a named native workflow with the Workflow tool. The named workflows are the meta.name of each .claude/workflows/*.js file (list them with /workflow or ls .claude/workflows/).
Workflow({ name: 'plugin-contract-audit' }) // run a named workflow
Workflow({ name: 'plugin-contract-audit', args: 'ruflo-agentdb' }) // pass args → the script's `args` global
Workflow({ scriptPath: '.claude/workflows/foo.js' }) // run a script by path
Workflow({ scriptPath, resumeFromRunId: 'wf_…' }) // resume — unchanged agent() calls return cached
Notes:
/workflows.resumeFromRunId), not the MCP state machine. Stop a run first, then resume from its runId.workflow-create skill.See ADR-0002.