dispatch
Send a prompt to a project or workspace and receive an identifier immediately. The task runs asynchronously in the background.
Instructions
Dispatch a prompt to a project or workspace. NON-BLOCKING.
name: project name, or @workspace to fan-out to all projects in that workspace. When a workspace is targeted, each member project is dispatched independently and a list of dispatch_ids is returned.
Spawns a one-shot subprocess (e.g. claude -p "..." --continue) in the
project's cwd and returns immediately with a dispatch_id (<100ms).
agent (optional): override the project's registered agent for this one dispatch only. Useful for e.g. sending a design-heavy task to a different agent without mutating the registry. Registry is unchanged.
fallback (optional): list of agent names to try in order if the
primary agent exits non-zero (e.g. token/rate limit, crash). If omitted,
the project's saved fallback from the registry is used. Pass an empty
list [] to explicitly disable fallback for this dispatch.
permission_mode controls how the agent handles permission prompts:
"bypass" — skip all prompts (default for new projects)
"auto" — claude-only; classifier-reviewed actions (Sonnet/Opus 4.6 only)
"restricted" — no skip flag; agent may fail on operations needing approval
None (default): use the project's saved mode, or "bypass" for new projects. The resolved value is saved to the registry for future dispatches.
session_id (optional): one-shot override for conversation resumption.
Given → resume that specific session (agent-specific flag: claude
-r <uuid>, codexresume <id>, droid-s <uuid>, opencode-s <uuid>, gemini--resume <index>). After this dispatch the agent's own "resume latest" mechanism picks up the just-used session, so subsequent default dispatches continue from it without restating the id.None (default): use the project's saved
session_idif any (persistent pin), otherwise fall back to the agent's "resume latest" flag. Droid has no headless "resume latest", so absence of a session_id means a fresh session on every droid dispatch.
language (optional): one-shot override for the response language.
A non-empty string (e.g. "Korean", "ko", "Français", "fr") → prepend a "Respond to the user in ." directive to the prompt.
"" (empty string) → suppress the project's saved language for this call (fall back to agent default, usually English) without mutating the registry.
None (default) → use the project's saved
language, set viaupdate_project(language=...). If unset, no directive is added.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| agent | No | ||
| prompt | Yes | ||
| resume | No | ||
| timeout | No | ||
| fallback | No | ||
| language | No | ||
| session_id | No | ||
| permission_mode | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||