encode_text
Encodes text to Japanese EBCDIC hex for IBM930/IBM939, adding SO/SI around kanji and listing unencodable or one-way characters.
Instructions
Encode text to Japanese EBCDIC hex (SO/SI added around kanji). Lists unencodable and one-way characters.
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": {
"text": "<text>"
},
"name": "encode_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| codepage | No | ibm930 = katakana in single-byte (no lowercase); ibm939 = Latin with lowercase. auto detects it and says what it assumed in notes. | auto |
| dbcs_only | No |