Expand description
The routes of the Drone tool (SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md §6.5): an agent lists the
drones on this computer, reads one, fires one with a payload, and reads its runs.
POST /api/v1/drone/{list,get,fire,runs} { agent_id, drone_id?, input?, limit? }
The agent’s token decides who acts; the body’s agent_id must be a name that agent answers to. A
fired run is recorded in the ledger as that agent, never as the operator.
What an agent may fire is narrower than what a person may run from the pane. The payload of a fire is outside text (the run treats the whole trigger as tainted), so a drone that could turn that text into a change outside AgentMux is refused here: one that writes outside (an API call that is not a read), reads a Vault credential, runs a command, or calls another drone (what that one does is not in this graph). Those a person runs from the Drone pane, where the person is the reader. This is the Rule of Two with no Approval step to lean on yet; a drone with an Approval step will be allowed by a later change.
Constants§
- DEFAULT_
RUNS 🔒 - MAX_
RUNS 🔒 - The most runs
runsreturns, and how many it returns whenlimitis left out. - OUTPUT_
CHARS 🔒 - A run’s output is cut to this many characters in an answer; the pane has all of it.
Functions§
- act 🔒
- brief 🔒
- find 🔒
- The drone the body names, by id or by its exact name (case-insensitive).
- handle_
drone 🔒 - input_
of 🔒 - What a fire starts the run with: an object, at most the input limit. Left out means none.
- kinds 🔒
- The node kinds of a drone, each once, as the graph names them.
- run_
brief 🔒 - text 🔒
- why_
not_ 🔒fireable - Why an agent may not fire this drone, or
Nonewhen it may. The Drone tool and an agent’s ownrundronecall both ask it. - with_
yours 🔒 - Whether the agent made the drone or was given it: what
fireruns at once.