Legacy: encode → util.encode
encodeConvert text into base64, hex, or URL encoding. Specify the text and format to get encoded output.
Instructions
Legacy alias for util.encode (GET /v1/encode). Prefer util.encode.
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": {
"q": "<q>"
},
"name": "encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Text to encode. | |
| format | No | Encoding format. | base64 |