TikZ 그림 렌더링
render_tikzCompile TikZ/circuitikz/pgfplots/chemfig code into SVG, PDF, or PNG figures and return a preview to create and check circuits, free-body diagrams, vectors, geometry, and block diagrams.
Instructions
Compile TikZ/circuitikz/pgfplots/chemfig code into a figure (SVG, PDF, PNG) and return a preview image. For circuits, free-body diagrams, vectors, geometry, block diagrams. Adapt a similar example from get_template first.
Example: {"code": "\begin{circuitikz}\draw (0,0) to[R, l=$R$] (2,0);\end{circuitikz}"}
Bare \draw commands are wrapped; packages, libraries and Korean labels are mostly automatic. Check the preview for missing parts, wrong connections, overlaps, arrow directions.
On failure: errors give the TeX cause (! line) and l.N = line N of your code; fix it and call again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | tikzpicture/circuitikz code, or a full standalone document | |
| name | No | File name | |
| packages | No | Extra packages (usually auto-detected) | |
| tikz_libraries | No | e.g. ["arrows.meta"] (usually auto-detected) |