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