compile_copybook
Generate exact byte offsets, record length, JSON Schema, TypeScript types, and SQL DDL from 80-column or free-format COBOL DATA DIVISION copybooks.
Instructions
Compile an 80-column punched-card or free-format COBOL DATA DIVISION Copybook into exact byte offsets, total record length, JSON Schema, TypeScript types, and SQL DDL.
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": "compile_copybook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copybook | Yes | COBOL Copybook source text (supports 80-col fixed format or free format). | |
| sqlDialect | No | Target SQL dialect for generated CREATE TABLE DDL. |