Semiotic

v3.15.1
io.github.nteract/semiotic Checked 2 hours ago Published 12 hours ago

Verified React chart generation: select, validate, repair, render, and inspect charts through MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

auditArtifact Audit an explicit artifact contract

Evaluate a chart and its explicit artifact contract under a named policy. The tool audits only supplied claims, evidence, source identity, review state, and time state; missing facts remain missing or unknown. Results are capped and report truncation explicitly.

ParameterTypeDescription
component *stringSemiotic component name.
contract *objectComplete explicit artifact contract. Validate against semiotic://artifact-contract-schema; omitted source, review, and time facts stay omitted or explicitly unknown.
policyId *stringExplicit built-in policy identifier used for this operation.
dataarrayOptional explicit row data overriding props.data.
exceptionsarray
nowstringExplicit reference clock for review, freshness, and expiry checks. Use an ISO 8601 timestamp.
propsobjectChart props/config. Data may be supplied here or separately.

recommendRepresentation Recommend a defensible representation

Recommend chart and non-chart outcomes from explicit data and an explicit artifact contract. Evidence, source, review, and time facts are never synthesized. The named policy can recommend waiting, collecting data, or making no claim instead of forcing a chart.

ParameterTypeDescription
contract *objectComplete explicit artifact contract. Validate against semiotic://artifact-contract-schema; omitted source, review, and time facts stay omitted or explicitly unknown.
policyId *stringExplicit built-in policy identifier used for this operation.
dataarrayExplicit row data; omit only when contract evidence is sufficient.
exceptionsarray
identifiersarray
intent
maxChartCandidatesinteger
nowstringExplicit reference clock for review, freshness, and expiry checks. Use an ISO 8601 timestamp.
preferredComponentstringOptional Semiotic component preference.

repairArtifact Repair an explicit artifact contract

Propose repairs for a chart and explicit artifact contract. By default this is proposal-only. If enabled, safe application fills missing component and configuration/data identity fields only; existing bindings are never overwritten. Mismatches require an explicit revision and claim reassessment. Source, evidence, review, approval, and time facts are never invented. Returned contracts omit evidence samples, report transfer losses, and are withheld above a 64 KiB UTF-8 cap.

ParameterTypeDescription
component *stringSemiotic component name.
contract *objectComplete explicit artifact contract. Validate against semiotic://artifact-contract-schema; omitted source, review, and time facts stay omitted or explicitly unknown.
policyId *stringExplicit built-in policy identifier used for this operation.
applySafeIdentityRepairsbooleanFill missing identity fields only; existing mismatches require an explicit revision and claim reassessment. Defaults to false.
dataarray
exceptionsarray
nowstringExplicit reference clock for review, freshness, and expiry checks. Use an ISO 8601 timestamp.
propsobject

explainRefusal Explain an artifact policy refusal

Evaluate an explicit artifact contract under a named policy and explain why publication or action is refused. Missing evidence, source, review, and time facts stay explicit rather than being guessed.

ParameterTypeDescription
component *stringSemiotic component name.
contract *objectComplete explicit artifact contract. Validate against semiotic://artifact-contract-schema; omitted source, review, and time facts stay omitted or explicitly unknown.
policyId *stringExplicit built-in policy identifier used for this operation.
dataarray
exceptionsarray
nowstringExplicit reference clock for review, freshness, and expiry checks. Use an ISO 8601 timestamp.
propsobject

convertVegaLite Convert a Vega-Lite chart

Import a single-view Vega-Lite spec with inline data as a Semiotic ChartConfig. Strict mode reports unsupported semantics. Request lossy mode to receive a schema-validated approximation with warnings.

ParameterTypeDescription
spec *objectA Vega-Lite specification with inline data.values.
modestringDefaults to strict.

getSchema

Return the prop schema for a Semiotic chart component. Pass { component: '<name>' } to get its props, or omit component to list all available components. Components marked [renderable] can be passed to renderChart for static SVG output.

ParameterTypeDescription
componentstringComponent name, e.g. 'LineChart'. Omit to list all.

suggestChart

Lightweight heuristic chart recommender for a small data sample (1-5 rows) with capability filtering (push API, linked hover, SSR, selection, legend). Returns ranked recommendations with example props. For richer capability-descriptor ranking (scores, reasons, caveats) and the full 13-intent taxonomy, prefer `suggestCharts` (plural).

ParameterTypeDescription
data *array1-5 sample data objects
capabilitiesobjectCapability constraints — set a key to true to require, false to forbid. Unset keys are ignored.
intentstringVisualization intent. Accepts this engine's intents (comparison, trend, distribution, relationship, composition, geographic, network, hierarchy) AND the richer suggestCharts taxonomy (compare-categori…

renderChart

Render a Semiotic chart to static SVG or PNG. This is a static snapshot path: props must include data immediately, and ref/push-mode charts cannot be rendered through this tool. Returns SVG text by default or an image/png artifact when format='png', plus a "Render evidence" JSON block (mark counts by type, resolved axis domains, empty flag, annotation count, accessible name) — read the evidence instead of parsing the SVG to verify the chart actually rendered data marks. An optional explicit contract is preserved in render evidence together with its transfer status; missing contract facts are…

ParameterTypeDescription
component *stringChart component name, e.g. 'LineChart', 'BarChart'
contractobjectOptional explicit artifact contract. The render evidence reports whether it was preserved, invalid, or an unsupported version.
formatstringOutput format: 'svg' (default) returns SVG markup, 'png' returns image/png artifact data. PNG requires the 'sharp' package.
propsobjectChart props object, e.g. { data: [...], xAccessor: 'x' }.
themeobjectCSS custom properties for theming, e.g. { '--semiotic-bg': '#1a1a2e', '--semiotic-text': '#ededed' }. Only --semiotic-* variables are applied.

renderInteractiveChart Render interactive Semiotic chart

Render a static-data Semiotic chart as a ChatGPT Apps widget. Use this after suggestCharts/getSchema/diagnoseConfig when the user wants to see an interactive chart inside ChatGPT. The server renders Semiotic to SVG and the widget adds fit, zoom, data, hover, and render-evidence controls. Available components: AreaChart, BarChart, BigNumber, BoxPlot, BubbleChart, BumpChart, CalendarHeatmapRecipe, CandlestickChart, ChainReactionChart, ChordDiagram, ChoroplethMap, CirclePack, CollisionSwarmChart, ConnectedScatterplot, CrucibleChart, DependencyForestChart, DifferenceChart, DistanceCartogram, Donut…

ParameterTypeDescription
component *stringRenderable chart component name, e.g. 'LineChart', 'BarChart', 'GaugeChart'.
propsobjectStatic Semiotic chart props, including data/accessors where required.
themeobjectCSS custom properties such as { '--semiotic-bg': '#fff', '--semiotic-text': '#111' }. Only --semiotic-* variables are applied.

diagnoseConfig

Diagnose a Semiotic chart configuration for common problems (empty data, bad dimensions, missing accessors, wrong data shape, color contrast issues, etc). Pass usageMode='push' for ref-based React HOCs that intentionally omit data; omit usageMode or pass 'static' for renderChart/MCP/server configs where data is required. Checks WCAG color contrast ratios and suggests COLOR_BLIND_SAFE_CATEGORICAL for accessibility. Returns a human-readable diagnostic report with actionable fixes.

ParameterTypeDescription
component *stringChart component name, e.g. 'LineChart'
propsobjectChart props object, e.g. { data: [...], xAccessor: 'x' }.
usageModestringValidation mode. Use 'push' for ref-based React HOCs that omit data; use 'static' or omit for renderChart/MCP/static data configs.

auditAccessibility

Audit a Semiotic chart configuration against the Chartability (POUR-CAF) accessibility framework — Perceivable, Operable, Understandable, Robust, Compromising, Assistive, Flexible. Statically grades the config (no DOM/AT): credits the built-ins every HOC ships (keyboard nav, focus ring, skip link, screen-reader data table, reduced-motion + forced-colors, shareable state), flags author-actionable gaps (missing title/description/summary, low contrast, small text, color-only encoding, undescribed trends, data density), and routes everything that needs real assistive-technology testing to a 'man…

ParameterTypeDescription
component *stringChart component name, e.g. 'LineChart'
describebooleanTrue if ChartContainer's describe option (auto-generated L1–L3 description via describeChart) is enabled — passes the 'features described' heuristic.
inChartContainerbooleanTrue if the chart is (or will be) wrapped in a ChartContainer exposing data-download/copy-config actions.
navigablebooleanTrue if ChartContainer's navigable option (structured navigation tree via buildNavigationTree) is enabled — passes the 'navigable structure' heuristic.
propsobjectChart props object, e.g. { data: [...], xAccessor: 'x', title: '...' }.

critiqueChart

Critique a chart's configuration, representation, and fit to the supplied analytical intent. Returns a concise static assessment, ranked findings, and the capability score when data supports it.

ParameterTypeDescription
component *stringSemiotic component name.
props *objectChart configuration including its authored data.
intentstringA registered analytical intent such as trend or distribution.

evaluateChart

Evaluate a Semiotic chart through one deterministic quality pass: numeric data contracts, configuration and representation/deception checks, and static Chartability accessibility heuristics. Returns the independent audit reports plus a severity-ranked findings list and notification feed. Pass data separately when it should override props.data; use inChartContainer, describe, or navigable to describe the intended accessibility wrapper. This is static analysis and does not replace manual assistive-technology testing or render evidence.

ParameterTypeDescription
component *stringChart component name, e.g. 'LineChart'.
dataarrayOptional explicit dataset. When supplied, this is used as the effective props.data for evaluation.
describebooleanWhether ChartContainer's generated description is enabled.
inChartContainerbooleanWhether the chart will be wrapped in ChartContainer or an equivalent control surface.
navigablebooleanWhether ChartContainer's structured navigation tree is enabled.
propsobjectChart props/config, including accessors and optional data.

auditMobileVisualization

Audit a Semiotic chart configuration for mobile visualization risks. Use before generating phone-sized charts or when adapting a desktop chart to mobile. Flags fixed desktop widths, rough mark-density overload, hover-only detail, small touch targets, complex gestures without controls, legend dependence, annotation overload, and missing mobile transformation hints. Static analysis only: still verify rendered charts at phone widths.

ParameterTypeDescription
component *stringChart component name, e.g. 'LineChart', 'Scatterplot', or 'BarChart'.
inChartContainerbooleanWhether the chart is wrapped in ChartContainer or an equivalent summary/control surface.
propsobjectChart props/config to audit.
targetSizeintegerDesired comfortable touch target size in CSS pixels. Defaults to 44.
viewportWidthintegerMobile viewport width in CSS pixels. Defaults to 390.

reportIssue

Generate a GitHub issue URL for Semiotic bug reports or feature requests. Returns a URL the user can open to submit. For rendering bugs, include the component name, props summary, and any diagnoseConfig output in the body.

ParameterTypeDescription
title *stringIssue title, e.g. 'Bug: BarChart tooltip shows undefined'
bodystringIssue body with details, reproduction steps, diagnoseConfig output
labelsGitHub labels, e.g. ['bug'] or 'bug'

applyTheme

Get usage instructions for a named Semiotic theme preset. Returns ThemeProvider examples, CSS custom properties, and design token export patterns. Available themes: light, dark, high-contrast, pastels, pastels-dark, bi-tool, bi-tool-dark, italian, italian-dark, tufte, tufte-dark, journalist, journalist-dark, playful, playful-dark, carbon, carbon-dark.

ParameterTypeDescription
namestringTheme preset name, e.g. 'tufte', 'pastels-dark', 'bi-tool'. Omit to list all available themes.

interrogateChart

Conversational interrogation of a Semiotic chart. Extract a statistical summary and answer natural language questions about the data, trends, and outliers. Returns a summary and guidance for an AI to generate a textual answer and visual annotations.

ParameterTypeDescription
component *stringChart component name, e.g. 'LineChart'
props *objectThe full chart props including data
querystringA natural language question about the chart data

groundChart Ground a Semiotic chart for a non-visual reader

Build the agent-reader grounding payload for a Semiotic chart: the layered L1–L3 natural-language description, the L4 communicative-act sentence (what the chart is asking the reader to do), and a structured navigation tree (chart → axes/series → datum). Use this to interpret a chart faithfully without pixels.

ParameterTypeDescription
component *stringChart component name, e.g. 'LineChart'
props *objectThe full chart props including data

suggestStreamCharts

Recommend streaming Semiotic charts for a schema (not row data). Pass fields (with optional cardinality and additive hints) plus optional throughput (band or rows/sec), retention, shape ('append'|'keyed'|'aggregate'), and keyFields. Ranks realtime XY charts plus push-capable ordinal/value/xy charts (BarChart, PieChart, Scatterplot, BigNumber, GaugeChart, …). Returns suggestions, excluded fits-reasons, the ranking intents (inferred when none is given), schema warnings, and optional stretch picks when audience is set.

ParameterTypeDescription
schema *objectStream schema — fields plus throughput/retention/shape hints. No row data.
audienceobject
intentRanking intent.
maxResultsinteger

suggestStreamDashboard

Compose a multi-panel dashboard from one or more stream schemas. Honors AudienceProfile.dashboard layout policy (cellBudget, leadFamilies, windowPreference).

ParameterTypeDescription
schemas *
audienceobject
budgetinteger
intent

suggestDashboard

Generate a dashboard of complementary chart panels for a dataset — each panel answers a distinct analytical intent (trend, rank, distribution, correlation, etc.) and the engine diversifies by chart family by default. Heuristic only; no LLM call. Use when the user asks 'show me this data' or 'build me a dashboard' rather than picking one chart.

ParameterTypeDescription
data *arrayRow data — array of objects.
audienceobjectAudience profile — familiarity, adoption targets, exposure level, and reception modality.
diversifyByFamilybooleanPrefer not to repeat chart families across panels (default true).
fieldRolesobjectPer-field semantic or exact encoding-role hints used before chart ranking.
identifiersarrayFields that identify records and must not be used as visual encodings or measures.
intentsarrayIntents to cover. Omit to let the engine pick based on the data shape.
maxPanelsintegerMaximum panels (default 6).

suggestTokenEncoding

Recommend a semantic token / ISOTYPE encoding for a reader task. Use before drawing repeated dots, icons, glyphs, natural-frequency grids, quantile dotplots, or hybrid bar-token views. Returns the recommended tokenEncoding, warnings, alternatives, and matching suggestCharts capability intents. Accepts canonical token intents (precise-comparison, probability-estimation, risk-communication, memory, support-decision, etc.) and friendly aliases (measure, estimate probability, understand risk, remember, decide).

ParameterTypeDescription
taskIntent *stringReader task intent, e.g. 'estimate probability', 'understand risk', 'remember', 'measure', 'decide', or canonical token intents like 'probability-estimation'.
audiencestringAudience for the recommendation.
availableSpacestringSpace budget for visible tokens.
concreteEntitystringConcrete icon/glyph concept, e.g. person, bus, server. Becomes tokenEncoding.icon when useful.
dataTypestringData shape or meaning behind the tokenized view.
precisionNeedstringHow much exact magnitude reading matters.

suggestStretchCharts

Recommend literacy-growth chart picks for a dataset given an AudienceProfile. Returns charts the data supports but the audience is unfamiliar with (familiarity ≤ 3, or ≤ 4 at exposureLevel 2), each paired with the familiar chart it could substitute for and a rationale. Use when the consumer wants to gently expose users to less familiar but more analytically appropriate visualizations.

ParameterTypeDescription
audience *objectAudience profile — familiarity, targets, exposure level, reception modality.
data *arrayRow data.
fieldRolesobjectPer-field semantic or exact encoding-role hints used before chart ranking.
identifiersarrayFields that identify records and must not be used as visual encodings or measures.
intent
maxResultsinteger

repairChartConfig Repair an unsuitable chart choice

Validate that a chart component is a sensible choice for a dataset, and if not, propose ranked alternatives that fit. Returns a structured status of ok, alternative, or unknown.

ParameterTypeDescription
component *stringChart component name to validate, e.g. 'PieChart'
data *arrayRow data — array of objects.
fieldRolesobjectPer-field semantic or exact encoding-role hints used before chart ranking.
identifiersarrayFields that identify records and must not be used as visual encodings or measures.
intentUser intent — informs ranking of alternatives when the chart doesn't fit.
maxAlternativesintegerCap on alternatives returned (default 3).

proposeChartVariants

Propose and score chart variants for a selected Semiotic component. Uses the capability registry plus heuristic variant discovery: registered variants, conservative transforms, and same-intent cross-family alternatives. Returns ranked proposals with fit/novelty/risk scores, rationale, and ready-to-use props. Use after suggestCharts when an agent wants to actively explore variants rather than stop at the first chart recommendation.

ParameterTypeDescription
component *stringBase chart component to vary, e.g. 'LineChart', 'BarChart', or 'BoxPlot'.
audienceobjectAudience profile — familiarity, adoption targets, exposure level, and reception modality.
dataarrayRow data to profile. Overrides props.data when present.
fieldRolesobjectPer-field semantic or exact encoding-role hints used before chart ranking.
identifiersarrayFields that identify records and must not be used as visual encodings or measures.
intentRanking intent(s), e.g. trend, distribution, rank, compare-categories, composition-over-time.
maxResultsintegerCap on proposals returned (default 8).
propsobjectExisting chart props. If props.data is present it is profiled; network/hierarchy/geo object data can be passed here as raw input.

suggestCharts Recommend Semiotic charts

Recommend Semiotic charts for a dataset using heuristic capability descriptors. Returns ranked, structured suggestions with scores, reasons, caveats, and ready-to-use props; no LLM call is made.

ParameterTypeDescription
data *arrayRow data — array of objects.
allowarrayRestrict to these component names.
audienceobjectAudience profile — familiarity, adoption targets, exposure level, and reception modality.
denyarrayExclude these component names.
fieldRolesobjectPer-field semantic or exact encoding-role hints used before chart ranking.
identifiersarrayFields that identify records and must not be used as visual encodings or measures.
intentRanking intent. One of: trend, compare-series, compare-categories, rank, part-to-whole, distribution, correlation, flow, hierarchy, geo, outlier-detection, composition-over-time, change-detection. Cus…
maxResultsintegerCap on suggestions returned (default 8).