The orchestration tools let agents collaborate with each other and with users. They are the mechanism behind Stencila's multi-agent architecture: a manager agent can discover what specialists and workflows are available, route a task to the best match, and ask the user for clarification when needed.
These tools are not part of any provider's default tool set. They are registered separately and only available to agents that explicitly list them in allowed-tools. Most users will never call them directly — they are invoked by agents like the built-in manager agent as part of Stencila's routing and orchestration layer.
Asks the user one or more questions and waits for their responses. Supports freeform text, yes/no, confirmation, single-select, and multi-select question types. When multiple questions are provided, they are presented together as a form where the frontend supports it; otherwise they are presented sequentially.
Each question object supports:
Agents use ask_user when they need clarification before proceeding, when a decision point requires human judgment, or as part of a human-in-the-loop workflow where user approval gates the next step.
Discovers available agents from all sources — workspace, user configuration, and built-in. Returns a JSON array of agent summaries to help decide which agent to delegate to. Takes no parameters.
Discovers available workflows from the workspace's .stencila/workflows/ directory. Returns a JSON array of workflow summaries to help decide which workflow to delegate to. Takes no parameters.
Ends the current agent's turn and hands the task to another agent or workflow. The delegatee starts a new session with the provided instruction. Use this after inspecting available agents and workflows with list_agents and list_workflows.
The tool validates that the named agent or workflow exists before delegating. If the name is not found, it returns an error so the agent can try a different candidate.
The built-in manager agent demonstrates the typical orchestration pattern. When a user starts a conversation, the manager:
This pattern separates routing intelligence from task execution: the manager never does the work itself, it just connects the user to the right specialist. Custom agents can use the same tools to build their own orchestration logic.