stata_graph
Export the current or named Stata graph to stata_output/figures for inline display, saving a PNG and optional PDF for LaTeX.
Instructions
Export the current (or named) Stata graph to stata_output/figures and display it.
Draw the graph first with stata_run/stata_do (e.g. coefplot, twoway, event-study plots). Saves .png (shown inline) and, if pdf=True, .pdf for LaTeX.
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": {
"filename": "<filename>"
},
"name": "stata_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| width | No | ||
| filename | Yes | ||
| graph_name | No |