Skip to main content

Module blocks

Module blocks 

Source

Modules§

agent
Agent block — one-shot Claude Code spawn driven by an AgentRef and a per-call task template.
agent_output
Structured output of the Agent block (SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md §4.1, §6.3).
api
API block — HTTP request via reqwest. Honors {{...}} interpolation in url, headers, and body.
api_auth
The API block’s auth: a Vault entry whose value is sent as one header (the Vault slice of Drone phase 3).
api_poll
The question a poll trigger asks when its query is api (docs/specs/SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md §3.2): one GET of a site’s list, with an optional Vault credential, answered as the items in it.
app_query
App query block: reads AgentMux’s own state, read-only (the Drone real-world jobs spec §4.2). Deterministic and free: no agent turn, no network.
approval
The Approval block: the run stops and a person says yes or no (docs/specs/SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md §4.2 and §6.4).
call
The Drone block: calls another drone as a step (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.5).
condition
Condition block — boolean expression evaluator.
join
The Join block: where branches that split come together (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.7).
message
Message block: sends a message to one agent through the normal path (the Drone real-world jobs spec §4.2).
notify
Notify block: tells the operator something, as an OS notification (the Drone real-world jobs spec §4.2).
once
The Once block: “do this once for this key” (docs/specs/SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md §4.2).
response
Response block — terminal output sink. Captures whatever the template field resolves to and that becomes the drone’s run output. There must be exactly one Response block per drone (validator enforced at save-time, frontend side).
run
Run block: runs a fixed command line in a container (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.6).
spawn
Spawn block: starts a worker of one agent with a brief (the Drone real-world jobs spec §4.2).
task
Task block: files a Kanban task for an agent, or for the backlog (the Drone real-world jobs spec §4.2).
transform
Transform block: shapes a list or an object with a chain of operations in a restricted expression language, and runs no code (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.9; the evaluator is drone/transform.rs).
variables
Variables block: writes the run’s named values. The block’s data.entries is a list of {name, value, reducer?}. Each string value is {{}}-resolved against the current scope (a value that is one {{...}} token keeps its type: a number stays a number, a list a list) and written under the variable’s reducer (replace, the default, append, merge or add; see drone/state.rs), so a loop can collect into a list or add up a number. A value that reads something tainted is written tainted, and no later write clears it.
wait
The Wait block: the run stops for a time or for an event (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.3, “Waiting”).