Encode, decode, or reformat text
transform_textEncode or decode text using base64, hex, URL encoding, and more. Transform JSON with formatting or minification. Decoding validates input to prevent errors.
Instructions
Applies a reversible text transformation: base64 and base64url, hex, and URL percent encoding in both directions, plus JSON pretty-printing and minification. Decoding operations validate their input and report an error rather than returning garbage.
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": {
"operation": "<operation>",
"input": "<input>"
},
"name": "transform_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The text to transform. | |
| indent | No | Indent width for json-format. Ignored by every other operation. | |
| operation | Yes | Which transformation to apply. |