stata_write_dofile
Save Stata code to a do file on disk and get its file path. Use relative filenames to store within the current project's .stata-mcp/dofiles directory.
Instructions
将 Stata 代码写入 do 文件并保存到磁盘,返回文件路径;相对文件名会写入最近 session 项目的 .stata-mcp/dofiles/,不会使用 MCP runtime。
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": {
"content": "<content>"
},
"name": "stata_write_dofile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | do 文件的完整内容 | |
| filename | No | 文件名(不含扩展名)或绝对路径;留空则自动生成时间戳文件名 |