delegate
Delegate a task to a CLI adapter and return a normalized result. Configure safety mode, execution mode (sync/async), and resume sessions for multi-agent orchestration.
Instructions
Delegate a task to one CLI and return its normalized result.
cli is an adapter id (see capabilities); model is optional (the adapter's default
otherwise). safety_mode is read_only | propose | write | yolo (default read_only); write and
yolo also need a trusted workspace (trust_workspace=true or a configured allowlist). With
mode="async" a job id is returned; poll job_status / job_result. session_id resumes a
prior session where the CLI supports it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cli | Yes | ||
| prompt | Yes | ||
| model | No | ||
| working_dir | No | ||
| files | No | ||
| role | No | ||
| safety_mode | No | read_only | |
| mode | No | sync | |
| timeout_s | No | ||
| session_id | No | ||
| include_raw | No | ||
| trust_workspace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |