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.
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". |