delegate_task
Offload work to a cheaper model or summarize large vault files. Small files return directly; large files are delegated for summarization, falling back to raw content if workers are unavailable.
Instructions
Offload work to a cheaper model or summarize vault files.
When project is provided, reads a vault file. Small files (≤50 lines) are returned directly. Large files are auto-delegated to a worker for summarization — falls back to raw content if workers are unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Relative path to a .md file. Overrides section. | |
| model | No | Concrete model id. Empty uses the configured worker model. The 4.0.0 removal retired 'auto', 'ollama', 'openrouter-free' and 'openrouter'; passing one is rejected rather than ignored. | |
| prompt | No | The task description or code to process. | |
| context | No | Optional system context for the model. | |
| project | No | Project slug for vault summarization mode. | |
| section | No | Shortcut name for summarization. Ignored if path is set. | context |
| timeout_s | No | Per-dispatch deadline in seconds. 0 uses the ambient tool timeout. A value ABOVE the ambient one raises the ceiling rather than being clamped by it — a deadline a 60s default can silently cap is not a deadline (HIVE-384 AC3). | |
| max_tokens | No | Maximum tokens in the response. | |
| structured | No | Return a JSON record instead of prose. Prose is the default so every existing caller's contract is unchanged; the dispatcher asks for JSON because it needs the status as a VALUE. Exception types do not survive the JSON-RPC boundary between the daemon and its clients, so "the pool refused" and "the worker answered badly" cannot be told apart by type on the far side — and a dispatcher that cannot tell them apart turns a rate limit into a silent retry against a different model. | |
| max_summary_lines | No | Target summary length for summarization. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |