dispatch
Send a prompt to Claude Code inside a devcontainer and receive the result. Ideal for quick tasks that complete within 60 seconds.
Instructions
Run a prompt against Claude Code in this devcontainer; return the result.
Use for short prompts (under ~60s round trip). For anything longer
use dispatch_async so the MCP transport's per-call ceiling
doesn't abort your tool call before claude finishes.
Args:
prompt: The natural-language task for Claude Code.
channel: Logical conversation thread. Same channel = shared
session (subsequent calls --resume it). Default
"default" — pick a stable channel name per logical
thread (e.g. "feature-auth").
timeout_seconds: Wall-clock seconds before the call is aborted.
Default 300.
permission_mode: default | acceptEdits | plan |
bypassPermissions. Defaults to
CLAUDE_BRIDGE_DEFAULT_PERMISSION_MODE.
cwd: Per-call working directory override. Use it to retarget at
a specific project (e.g. /workspace) while keeping the
bridge anchored in a clean directory for fast cold starts.
Returns:
Success: {ok: true, channel, duration_ms, result, session_id, raw, stderr}.
Failure: {ok: false, channel, duration_ms, error, exit_code?}.
Failures never raise — the MCP layer always sees a result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| channel | No | default | |
| timeout_seconds | No | ||
| permission_mode | No | ||
| cwd | No |