read_log
Extract contents from Stata .log or .smcl files in full, core, or dict formats, with optional first/last N line output.
Instructions
Read a Stata log file (.log or .smcl) and return its content. Supports full, core, and dict output formats. Use lines to return only the first/last N lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| encoding | No | utf-8 | |
| file_path | Yes | ||
| output_format | No | core |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |