start_workflow
Launch a durable workflow run from a repo path and prompt; dependencies are pinned before creation, saved resources persist through pauses, and a workflow_run_id is returned.
Instructions
Start a durable workflow run; returns workflow_run_id rather than task_id.
Saved top-level resources are held through pauses and caller-input checkpoints; agent-node resources are acquired before a harness slot. Resources grant no access. Optional worktree {base_ref?, branch?, detach?} creates one shared checkout for the root and every child run after the run-scope grant. Nested callers and workflows whose agents are all read_only cannot request one. The default branch is harflow/workflow-<run_id>. Removal is explicit through harflow-ctl. Resources and the worktree plan are bound by expected_preview_hash.
Preserve spaces and word boundaries in prompt rather than compressing natural prose; the caller's source text is stored unchanged before workflow input assembly.
The complete dependency tree of any Run workflow node is resolved and pinned before the run is created, so later edits or deletes never reinterpret the run. Children are linked runs that share the root's harness-turn budget; public controls apply to the root run id only.
goal is optional nonblank text up to 64 KiB UTF-8, preserved verbatim. It complements the saved purpose and request without expanding permissions. notify reserves configured root-run settlement/attention webhooks before creation; notify_events selects terminal, attention, or both (default). Direct callers only; see docs/task-notifications.md. Completion requires an assessment with evidence for the current goal revision; conflicts or unverifiable criteria need input.
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": {
"name": "<name>",
"prompt": "<prompt>",
"repo_path": "<repo_path>"
},
"name": "start_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | ||
| name | Yes | ||
| notify | No | ||
| prompt | Yes | ||
| freedom | No | ||
| network | No | ||
| worktree | No | ||
| overrides | No | ||
| repo_path | Yes | ||
| notify_events | No | ||
| expected_preview_hash | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||