clean_whitespace
Remove redundant whitespace from text: extra spaces, tabs, or newlines. Specify mode to clean all, only spaces, or only line breaks.
Instructions
Remove redundant whitespace: extra spaces, tabs, newlines, or all.
Parameters:
text — Text to clean.
mode — 'all' (default), 'spaces', or 'lines'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| mode | No | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |