read_log
Reads a Stata log file (.log or .smcl) and returns its content in full, core, or dict format. Control output length by specifying the first or last N lines.
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 |
|---|---|---|---|
| file_path | Yes | ||
| encoding | No | utf-8 | |
| is_beta | No | ||
| output_format | No | dict | |
| lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |