stata_session_history
Retrieve the command log of a Stata session to trace executed commands or replay them after a crash. Optionally limit to recent entries for quick inspection.
Instructions
返回当前会话的命令日志(seq/cmd/rc),供追溯或崩溃后重放。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last | No | 只返回最近 N 条(默认全部,上限 100)。 | |
| session_id | No | 会话标识;省略用 'default'。 |