describe_layout
Parse a COBOL copybook and list every field's byte position, length, and type, including PIC X, PIC N, zoned, packed, and binary fields.
Instructions
Parse a COBOL copybook and list every field with its byte position, length and type (text = PIC X with SO/SI kanji, dbcs = PIC N, zoned, packed = COMP-3, binary = COMP).
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": {
"copybook": "<copybook>"
},
"name": "describe_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | No | ||
| copybook | Yes | Absolute path to the COBOL copybook | |
| copybook_encoding | No | auto = UTF-8, else Shift_JIS (cp932) | auto |