local_delegate
Delegates generic text-to-text tasks to a local model when no specific tool fits, chunking long inputs and returning text to save Claude quota.
Instructions
Generic escape tool: delegates a text->text task to a local model.
Use it when no specific tool fits. Builds the prompt with guardrails and returns text.
With long inputs it splits the input at natural boundaries (Markdown headers, paragraphs),
applies the SAME task to each chunk and concatenates the outputs in order. That is right for
transforming the whole text (translate, rewrite, reformat) but NOT for reduction tasks over the
whole (counting, picking the maximum, a single global summary): for those pass `chunk='off'` or
use `local_summarize`.
Args:
task: Task instruction (one sentence with an explicit output format).
input: Content to operate on.
output_format: Exact expected output format.
model: Model to use; one of the ids configured in the catalog. Defaults to the mechanical one.
chunk: 'auto' (splits only if the input is long), 'on' (splits whenever possible),
'off' (a single call; a long input may come back truncated).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| chunk | No | auto | |
| input | Yes | ||
| model | No | ||
| output_format | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |