All tools
ToolRead

Validate visualization artifact

validate_visualization_artifact

You need to discover, read, validate, create, or attach Prism visual artifacts.

When to use it

You need to discover, read, validate, create, or attach Prism visual artifacts.

Typical workflow

Plan, generate externally, validate, then create or attach.

What it returns

Artifact metadata, specs, validation results, save guidance, or embeds.

Avoid using it when

You are trying to preview live output through MCP; render externally first.

Advanced input contract

Agent hosts use this JSON Schema to validate the exact input shape.

View JSON Schema
{
  "type": "object",
  "properties": {
    "artifactType": {
      "type": "string",
      "enum": [
        "chart",
        "table",
        "metric_card",
        "markdown",
        "react",
        "html",
        "spreadsheet",
        "presentation"
      ],
      "description": "Explicit Prism runtime/type to validate. Use react for TSX, html for self-contained HTML/CSS/inline JS, and native chart/table/metric_card/markdown when those schemas fit."
    },
    "spec": {
      "type": "object",
      "description": "For react/html: { source, title?, libraryMedia?: [{ fileId, alt, caption?, sourceLabel? }] }. Use window.PRISM_LIBRARY_MEDIA[fileId].url for authorized Library media, never a direct file URL. For chart/table/metric_card/markdown, use Prism's native validated spec shapes.",
      "examples": [
        {
          "source": "export default function App() { return <div>Visualization</div> }"
        },
        {
          "source": "<!DOCTYPE html><html><body><svg></svg></body></html>"
        }
      ]
    },
    "pythonSource": {
      "type": "string",
      "description": "Optional bounded Python generator. Use by itself. It must set PRISM_ARTIFACT or define create_artifact() returning { artifactType, title?, spec }. Python is not a live browser runtime."
    }
  },
  "additionalProperties": false
}

Useful next tools