MCP Geometry Server

  • Linux
  • Apple

renderGeometricImage

Convert Asymptote code into high-quality geometric images in SVG or PNG formats using the MCP Geometry Server. Customize output parameters like format and render quality for precise results.

Instructions

Renders an image from Asymptote code.

Input Schema

NameRequiredDescriptionDefault
asyCodeYesA string containing complete and valid Asymptote code to be compiled. The server executes this code directly. Ensure necessary `import` statements (e.g., `import graph;`) and settings (e.g., `unitsize(1cm);`) are included within this code block if needed.
outputParamsNoOptional parameters to control the output image.

Input Schema (JSON Schema)

{ "additionalProperties": false, "properties": { "asyCode": { "description": "A string containing complete and valid Asymptote code to be compiled. The server executes this code directly. Ensure necessary `import` statements (e.g., `import graph;`) and settings (e.g., `unitsize(1cm);`) are included within this code block if needed.", "type": "string" }, "outputParams": { "additionalProperties": false, "description": "Optional parameters to control the output image.", "properties": { "format": { "description": "The desired output image format. \"svg\" (default) produces scalable vector graphics, ideal for high-quality diagrams and plots. \"png\" produces raster graphics, which have broader compatibility with clients that may not support SVG directly (e.g., some versions of Cherry Studio). If targeting such clients, explicitly specify \"png\".", "enum": [ "svg", "png" ], "type": "string" }, "renderLevel": { "description": "For PNG output only. Specifies the rendering quality (supersampling level for antialiasing). Higher values (e.g., 4 or 8) produce smoother images but take longer to render and result in larger files. Asymptote's own default is 2. This server defaults to 4 if \"png\" format is chosen and renderLevel is not specified. Ignored for SVG output.", "type": "number" } }, "required": [], "type": "object" } }, "required": [ "asyCode" ], "type": "object" }

You must be authenticated.

Other Tools from MCP Geometry Server

Related Tools

    ID: 6ukap1bpd0