string_operation
Perform string manipulations including reverse, case conversion, word/character counting, replacement, and truncation by specifying an operation and text.
Instructions
Perform a string manipulation operation.
Args: operation: The string operation (reverse, count_words, uppercase, lowercase, title_case, count_chars, replace, truncate) text: The input text to operate on extra: Extra parameter (replacement text for 'replace', or max length for 'truncate')
Returns: The operation result as a string
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| extra | No | ||
| operation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |