trinity_dispatch
Create a durable task for a specific agent and execute a worker cycle. Specify target agent and task prompt; optionally wait for completion.
Instructions
Create a durable task for one explicit Trinity agent and run one worker cycle for that agent. Use this when the caller already knows the target agent; use trinity_dispatch_auto when routing should choose the agent. This writes to the local task database and may execute the configured agent command; with wait=true it returns the final compact task or a timeout error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory passed to the task; defaults to the user's home directory. | |
| task | Yes | Task prompt to persist and deliver to the target agent. | |
| wait | No | If true, block until the task reaches a terminal state or wait_timeout expires. | |
| task_type | No | Optional task type metadata for routing and audit records. | |
| source_agent | No | Originating agent id recorded on the task; defaults to mcp. | |
| target_agent | Yes | Exact recipient agent id, such as codex, claude_code, or hermes. | |
| wait_timeout | No | Maximum seconds to wait when wait=true; defaults to the server wait timeout. |