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),供追溯或崩溃后重放。
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_session_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last | No | 只返回最近 N 条(默认全部,上限 100)。 | |
| session_id | No | 会话标识;省略用 'default'。 |