detect_codepage
Determines whether a Japanese EBCDIC data file uses IBM930 or IBM939, returning both previews with an 'ambiguous' result when the code page cannot be determined.
Instructions
Guess whether a data file is IBM930 or IBM939 (says 'ambiguous' with both previews when it can't tell).
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": {
"path": "<path>"
},
"name": "detect_codepage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| copybook | No | Absolute path to the COBOL copybook | |
| copybook_encoding | No | auto = UTF-8, else Shift_JIS (cp932) | auto |