mathmagic_edit_equation
Replace an existing equation in an InDesign document with new LaTeX by targeting its [[MM:ID]] marker, re-rendering and swapping it offline or through the plugin.
Instructions
Replace the equation before [[MM:ID]] with new LaTeX (offline: re-render + replace; plugin: Edit Equation).
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_edit_equation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | offline (default; no focus change) or plugin (plugin brings windows to front) | |
| latex | Yes | New LaTeX | |
| marker | Yes | [[MM:ID]] | |
| confirm | No | Must be true to make changes | |
| eps_dir | No | offline: EPS folder | |
| size_pt | No | Per-equation size in pt (menu sizes + 0.1 pt steps) | |
| document | No | Open InDesign document name (default: active document) | |
| verify_latex | No | offline: LaTeX round-trip check |