delegate_task
Offload tasks to cost-effective models and automatically summarize large vault files, with fallback to raw content when 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 |
|---|---|---|---|
| prompt | No | The task description or code to process. | |
| context | No | Optional system context for the model. | |
| model | No | 'auto', 'ollama', 'openrouter-free', 'openrouter' (paid), or model ID. | auto |
| max_tokens | No | Maximum tokens in the response. | |
| max_cost_per_request | No | Max USD. 0 = free models only. | |
| project | No | Project slug for vault summarization mode. | |
| section | No | Shortcut name for summarization. Ignored if path is set. | context |
| path | No | Relative path to a .md file. Overrides section. | |
| max_summary_lines | No | Target summary length for summarization. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |