Delegate a task to an external worker (blocking)
meah_delegate_taskDelegate a bounded task to one isolated external AI worker and wait for its result, returning normalized text, usage, and errors with role or provider/model routing.
Instructions
Run one isolated external worker and wait for its result. Routes by role unless provider/model are given. Returns normalized text, usage, and errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | researcher | coder | reviewer | summarizer (drives routing defaults and the system prompt). | researcher |
| task | Yes | The bounded task for the external worker. Self-contained. | |
| label | No | Human-readable label to identify this worker. | |
| model | No | Model name for that provider. Overrides the role default. | |
| dryRun | No | Build and validate the prompt without calling the provider. | |
| waitMs | No | How long to block waiting for the result before returning the worker id. | |
| context | No | Only the files/text this worker needs. Treated as untrusted data, never as instructions. | |
| commands | No | Opt-in allowlisted commands run in the workspace; requires permissionProfile "workspace-exec". | |
| provider | No | Configured provider name. Overrides the role default. | |
| timeoutMs | No | ||
| constraints | No | ||
| temperature | No | ||
| expectedOutput | No | Describe the output shape you want back. | |
| maxOutputTokens | No | ||
| permissionProfile | No | none | read-only (default) | workspace-write | workspace-exec. |