parse_form
Parse Delphi/Lazarus form files (.dfm, .fmx, .lfm) to extract component structure, properties, positions, sizes, and event handlers. Choose tree, summary, or flat output to understand UI layouts.
Instructions
Parse a Delphi/Lazarus form file and return its component structure.
Reads .dfm (VCL), .fmx (FireMonkey), or .lfm (Lazarus) form files and returns a structured view of all components, their properties, positions, sizes, and event handlers.
Args: file_path: Absolute path to the .dfm, .fmx, or .lfm file. output_format: How to format the output: - 'tree': Indented component tree with key properties (default) - 'summary': High-level overview with component counts and events - 'flat': Flat list of all components with position/size info
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_format | No | tree |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |