codebrain_polish
Apply targeted transformations to existing text: tighten, shorten, rephrase, formalize, or translate without losing meaning.
Instructions
Apply a targeted transform to existing text — do not regenerate from scratch.
Use this when you have a draft and want it tightened, shortened, rephrased, made more formal, translated, or similar. The system prompt forces the model into transform-mode: it must preserve meaning and structure and only apply the requested change.
Args:
text: The existing text to polish.
instructions: What transformation to apply (e.g. "shorten to 2 lines",
"make tone more formal", "translate to German").
use_brain: If true, prepend .brain/context.md from cwd to the system prompt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| instructions | Yes | ||
| use_brain | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |