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.
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": {
"file_path": "<file_path>"
},
"name": "read_log"
}
}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 |