Encoder / Decoder
encode_decodeUse this when you need to encode or decode text and want multi-byte and entity edge cases handled correctly rather than doing it by hand. Deterministic: same input, same output. The mode selects the operation: url-encode/url-decode (percent-encoding), html-encode/html-decode (entity table plus numeric character references), base64-encode/base64-decode (UTF-8 safe; decode tolerates URL-safe alphabet, whitespace, and missing padding), and unicode-encode/unicode-decode (\uXXXX and \u{...} escapes for non-ASCII). Every mode returns the same shape: {mode, output}. Example: mode base64-encode, text "héllo" -> output "aMOpbGxv".
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": {
"mode": "<mode>",
"text": "<text>"
},
"name": "encode_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Operation to perform. | |
| text | Yes | Input text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | The operation that was performed (echoed back). | |
| output | Yes | The encoded or decoded result string. |