add_equation
Insert a LaTeX equation into a Word document as OMML after a specified paragraph. Provide the paragraph ID and LaTeX source string.
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 |
|---|---|---|---|
| para_id | Yes | ||
| latex | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |