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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>",
"instructions": "<instructions>"
},
"name": "codebrain_polish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| instructions | Yes | ||
| use_brain | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |