stata_run
Run a block of Stata commands in the target GUI session, overwriting the session's latest log and returning the actual output. Switch sessions beforehand with stata_session.
Instructions
在最近的 Stata MCP session 对应 GUI 中将 commands 作为一个完整代码块执行;每次覆盖该 session 的最新运行 text log,并自动返回实际输出。可先用 stata_session(action='set_recent') 切换目标 session。
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": {
"commands": "<commands>"
},
"name": "stata_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | Yes | 要执行的 Stata 命令,多行用换行符分隔 |