mathmagic_create_equation
Insert a native, editable MathMagic equation into an InDesign text frame from LaTeX at an [[MM:ID]] marker without keyboard, mouse, or clipboard, then verify placement and return timing and focus reports.
Instructions
Insert a native MathMagic equation at an [[MM:ID]] marker (no keyboard/mouse/clipboard); returns verification, timing and a focus report. One InDesign undo step (offline).
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>",
"marker": "<marker>"
},
"name": "mathmagic_create_equation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Equation id label (default: marker id) | |
| mode | No | offline (default; no focus change) or plugin (plugin brings windows to front) | |
| latex | Yes | LaTeX | |
| marker | Yes | [[MM:ID]] | |
| confirm | No | Must be true to make changes | |
| eps_dir | No | offline: EPS folder (default: <document>.mathmagic-eps) | |
| replace | No | Replace an existing equation before the marker | |
| size_pt | No | Per-equation size in pt (menu sizes + 0.1 pt steps) | |
| document | No | Open InDesign document name (default: active document) | |
| capture_png | No | Optional .png of the editor | |
| verify_latex | No | offline: export LaTeX back and compare structurally (default on; MATHMAGIC_VERIFY_LATEX=0 disables) | |
| remove_marker | No | Remove marker after verification |