optimize_text
Stage 1 — improves raw text in its own language (grammar, word choice, flow, clarity) without changing meaning or translating it; correctionsOnly limits it to spelling, grammar and punctuation. Use before translate_text when the input is rough.
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": {
"input": "<input>",
"audience": "<audience>",
"context": "<context>"
},
"name": "optimize_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Raw text to polish | |
| context | Yes | Tech context (tone calibration only) | |
| audience | Yes | Target audience (tone calibration only) | |
| managedModel | No | Pin a specific managed model (server-side allowlist) | |
| correctionsOnly | No | Write mode: true fixes spelling, grammar and punctuation only; omitted or false improves the whole text (word choice, flow, clarity). Applies to optimize_text and to format "Optimize". |