Skip to content

Automations Guide

DotCraft native Automations covers local tasks only. It reads task files from .craft/tasks/ in the current workspace, runs Agents manually or on a schedule, and keeps thread binding, templates, retries, activity display, and the CompleteLocalTask completion path.

Create a Local Task

A local task lives under .craft/tasks/<task-id>/:

text
.craft/
  tasks/
    weekly-report/
      task.md
      workflow.md

task.md describes the title, body, schedule, and thread binding. workflow.md describes the Agent workflow prompt.

Common Capabilities

CapabilityDescription
Manual runDesktop Automations panel or AppServer automation/task/run
Scheduled runConfigure schedule in the task file
Thread bindingBind a task to an existing thread so future runs submit there
TemplatesSave reusable task templates under .craft/automations/templates/
Completion toolAgent calls CompleteLocalTask with a summary
Delete taskDelete the task folder, optionally with the linked thread

AppServer Methods

MethodDescription
automation/task/listList local tasks
automation/task/readRead one local task
automation/task/createCreate a local task
automation/task/runRun a local task immediately
automation/task/updateBindingUpdate or clear thread binding
automation/task/deleteDelete a local task
automation/template/listList templates
automation/template/saveSave a user template
automation/template/deleteDelete a user template

See Automations Reference for field details.

Apache License 2.0