stata_export_graph
Export an in-memory Stata graph to PNG, SVG, or PDF and get back its absolute file path and size.
Instructions
把内存中的图导出为图片文件,返回绝对路径(正斜杠)与大小。
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_export_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | 要导出的图名(graph dir 里列出的名字,如 Graph / g1);省略 = 当前图。 | |
| format | No | 导出格式:png / svg / pdf。 | png |
| filename | No | 输出文件名(不含目录,不含路径分隔符);省略则自动生成。 | |
| session_id | No | 会话标识;省略用 'default'。 |