add_equation
Insert a LaTeX equation as OMML into a Word document after a specified paragraph. Provide the LaTeX source and the target paragraph ID.
Instructions
Insert a LaTeX equation as OMML. Requires: pip install latex2mathml.
Args: para_id: paraId of the paragraph after which the equation is inserted. latex: LaTeX source string (e.g. r"\frac{1}{2}").
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": {
"para_id": "<para_id>",
"latex": "<latex>"
},
"name": "add_equation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latex | Yes | ||
| para_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |