code_parse
Parse COBOL source files into AST, normalized model, and summary, with optional variable tracing for dependency mapping.
Instructions
Parse a source file from raw/ into structured code knowledge (AST, normalized model, summary). Currently supports COBOL (.cbl, .cob, .cpy). Persists artifacts under raw/parsed/cobol/. Optionally traces all references to a variable.
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": "code_parse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to source file in raw/ (e.g. 'PAYROLL.cbl') | |
| trace_variable | No | Optional: variable name to trace (e.g. 'WS-TOTAL-SALARY') |