execute_workflow
Loads a workflow template, creates a task session, dispatches instructions step by step, and adapts dynamically. Pauses when blocked for decision input.
Instructions
执行工作流模板:加载模板,创建任务 session,逐步下发指令,自适应调整,阻塞时暂停等待决策。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | 工作目录,覆盖模板中定义的 projectCwd | |
| model | No | 模型标识符 | |
| policy | No | 任务策略: "read-only" / "safe-edit" / "full-access" / .yaml路径 | |
| thinking | No | 思考级别 | |
| auto_mode | No | 自动审批工具调用。默认 true。 | |
| from_session | No | 接续的前置 session ID。 | |
| memory_level | No | 冷启动内存注入级别。 | standard |
| template_name | Yes | 模板名称,如 phase5-audit。可用 list_templates 查看可用模板。 |