Read stored results
stata_resultsRetrieves the macros left by the last Stata command—r(), e(), or s()—so you can convert transcript output into structured numbers.
Instructions
Return the macros left behind by the last command: r() from summarize/tabulate-style commands, e() from estimation, s() from sreturn. Use it to turn a transcript into numbers.
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_results"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the read. | |
| scope | No | Which macro scope to read (default all). | |
| timeout | No | Seconds (default 60). |