{
  "id": "text.encode",
  "object": "tool",
  "name": "Encode & decode",
  "summary": "Base64, hex, URL, HTML entities.",
  "description": "Encodes or decodes text as base64, base64url, hex, URL (percent) encoding or HTML entities. Decoded bytes that aren't valid UTF-8 come back as hex.",
  "category": "utility",
  "hosted_by": "Opentools",
  "runtime": "worker",
  "side_effects": false,
  "status": "live",
  "credits": 0,
  "price": "$0.0000",
  "providers": [
    {
      "id": "opentools",
      "name": "Opentools",
      "price": "$0.0000"
    }
  ],
  "mcp_name": "text_encode",
  "input_schema": {
    "type": "object",
    "properties": {
      "text": {
        "type": "string",
        "maxLength": 10000000,
        "description": "Input text"
      },
      "scheme": {
        "type": "string",
        "enum": [
          "base64",
          "base64url",
          "hex",
          "url",
          "html"
        ],
        "description": "Encoding"
      },
      "direction": {
        "default": "encode",
        "description": "Encode or decode",
        "type": "string",
        "enum": [
          "encode",
          "decode"
        ]
      }
    },
    "required": [
      "text",
      "scheme"
    ]
  },
  "kind": "tool"
}