mathmagic_export_equation
Render LaTeX equations to a file and choose the output format via the file extension, including PDF, SVG, PNG, MathML, and LaTeX.
Instructions
Render LaTeX with MathMagic to a file; format from the extension: .eps .pdf .svg .png .jpg .gif .bmp .wmf .mmf .mml/.mathml/.html (MathML) .tex (LaTeX, ams=true for AMS) .amath .mathtxt.
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": {
"latex": "<latex>",
"out_path": "<out_path>"
},
"name": "mathmagic_export_equation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ams | No | AMS LaTeX for .tex | |
| latex | Yes | LaTeX | |
| confirm | No | Must be true to make changes | |
| size_pt | No | Per-equation size in pt (menu sizes + 0.1 pt steps) | |
| out_path | Yes | Absolute output path | |
| overwrite | No | Replace existing file | |
| capture_png | No | Optional .png of the editor | |
| verify_latex | No | LaTeX round-trip check |