Data Analysis

Tools for data visualization including charts and other visual representations.

/api/tools/data-analysis

1 Tool

preview_mockup

Render an SVG mockup artifact to a PNG preview. The SVG must first be written as an artifact using write_artifact, then pass the artifact path here.

Tool

Endpoint

POST /api/tools/data-analysis

Input Schema

artifact *
string
Artifact path to the SVG file (as returned by write_artifact), e.g. "files/mockup.svg".
scale
number
Scale factor for higher resolution output (default: 2 for retina).
backgroundColor
string
Background color for the image as hex code (default: "#ffffff").
View full schema
{ "type": "object", "properties": { "artifact": { "type": "string", "description": "Artifact path to the SVG file (as returned by write_artifact), e.g. \"files/mockup.svg\"." }, "scale": { "type": "number", "description": "Scale factor for higher resolution output (default: 2 for retina)." }, "backgroundColor": { "type": "string", "description": "Background color for the image as hex code (default: \"#ffffff\")." } }, "required": [ "artifact" ] }