stata_read_log
Read a Stata text log and parse it into command-result pairs to pinpoint errors. Leave path empty to use the last session's log.
Instructions
读取 Stata text log。path 留空时读取最近 session 的 last_log_path;推荐 output_format='dict',它会把日志解析成命令-结果对,便于 AI 判断报错位置。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stata_read_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | log 文件的完整路径;留空则读取最近 session 的 last_log_path | |
| tail_lines | No | 只读取最后 N 行,留空则读取全部 | |
| output_format | No | 输出格式:full=完整文本,core=去除日志框架行,dict=JSON 命令-结果对 |