toolkit-mcp-server: encode value
toolkit_encode_valueEncode or decode text using base64, base64url, hex, or URL percent-encoding. Supports both encoding raw UTF-8 text and decoding back to original text with error reporting for malformed input.
Instructions
Encode or decode a value across base64, base64url, hex, or URL (percent) encoding, in either direction. Set operation to "encode" to transform raw UTF-8 text into the chosen encoding, or "decode" to recover the original text from an encoded value. base64url uses the URL-safe alphabet (- and _ instead of + and /); url applies encodeURIComponent / decodeURIComponent. Decoding a value that is malformed for the chosen encoding is reported as a recoverable error, not a silent best-effort.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The value to transform — raw text for encode, an encoded string for decode. | |
| encoding | Yes | The encoding to apply: base64, URL-safe base64url, hex, or URL percent-encoding. | |
| operation | Yes | "encode" transforms text into the encoding; "decode" recovers text from an encoded value. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | The transformed value (encoded text, or the decoded original). | |
| encoding | Yes | The encoding that was applied. | |
| operation | Yes | The operation that was performed. |