extract_formulas
Extract formulas from PDF pages, delivering LaTeX code, PNG renderings, and optional SymPy validation for structured mathematical content.
Instructions
extract_formulas tool:公式抽取(LaTeX + PNG,M5,T04)。
Args: pdf_path: PDF 路径(必填)。 pages: 页号(int | list[int] | None;1-based)。 render: 是否渲染 PNG(bool,默认 true)。 tex: 是否落盘 formulas.tex(bool,默认 false)。 sympy: 是否做 SymPy 校验(bool,默认 false)。
Returns: 结构化 JSON 文本(formulas.json 汇总)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tex | No | ||
| pages | No | ||
| sympy | No | ||
| render | No | ||
| pdf_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |