Codumentor logo Codumentor Enterprise

Task Tools Plugin

The Task Tools plugin lets the agent (or you, through it) create, inspect, and manage one-off scheduled agent runs (run_at). Recurring or event-fired work is a goal — see the Goals plugin (setup_goal; a single-worker goal is the lightweight form). Each run fires as a fresh conversation seeded with the stored prompt; there is no context carry-over between runs.

This plugin is the agent-facing surface only. The runs themselves — the run history, the job handler and the maintenance sweep — belong to the Task Runtime plugin, which it depends on.

Migrating a legacy scheduler_tools entry

Current builds do not ship scheduler_tools. If an inherited config still
lists it, remove the legacy entry from the layer that defines it; changing its
module prefix does not restore it. Use codumentor.plugins.task_tools for
one-off scheduling tools and codumentor.plugins.task_runtime for execution
(without a src segment). If those plugins are already configured, do not add
copies. Use Goals for recurring or event-fired work.

Configuration

plugins:
  - module: codumentor.plugins.task_tools
    class: TaskToolsPlugin
    priority: 10
    args:
      enabled: true
      default_timezone: UTC
ParameterTypeDefaultDescription
enabledbooltrueEnable or disable the plugin.
allow_cronbool—Deprecated, ignored. create_task is one-shot only, so there is nothing to allow; a configured value is accepted with a warning. Will be removed in the next release — drop it from your config.
default_timezonestring"UTC"IANA timezone recorded with a task when create_task is given none (run_at itself is epoch seconds, UTC).
target_agentsstring"main"Which agents get the task engine tools: "main", "subagent", or "all". Default keeps scheduling off subagents (their tool calls have no human reading them). A scheduled run itself is a main agent, so it can still manage tasks.

One switch this plugin reads but does not own: tasks.allow_agent_created
(default true), in the server's tasks: block rather than here, because it is
a statement about the task engine's authorization boundary rather than about
which tools this plugin ships. false makes create_task refuse — see
Admin Configuration Reference.

Tools

ToolDescription
create_taskCreate a one-off run: prompt and run_at (required), plus optional title, description, timezone, access_profile (the profile the unattended run executes under), and per-run limits timeout_seconds (wall clock, max 6h) and token_budget (tokens, minimum 10000). Returns a schedule_id. Passing cron, on, when, scope, mode or debounce_seconds is refused with invalid_args pointing to setup_goal.
list_tasksList the caller's tasks (optional status filter)
get_taskFull detail for one task, including last-run state
update_taskChange run_at, timezone, title, prompt, or the per-run limits timeout_seconds / token_budget. Passing null for a limit removes the task's own value, so the default applies again (the operator's token budget, the job queue's timeout). cron is accepted only on a task that is already recurring (a legacy row from before goals took over recurring work); a one-off cannot be turned into a recurring task.
pause_task / resume_taskPause or resume a task
snooze_taskPostpone the next fire to a given time
cancel_taskPermanently cancel a task
list_task_runsList prior runs of a task (most recent first), with status / error_kind, timings and tokens (input, cached, cache-write, output, total, cost_usd — null = unknown — and the run's effective token_budget, null = unlimited)
get_task_run_outputFetch a run's prompt, final answer, and turn summary
list_eventsRead the trigger event ledger — "did the webhook arrive?", "why did that task run?"

Notes