Template
Data table widget for MCP Apps
Rows and columns with a sticky header, where the caller decides the columns. One widget for invoices, leads, orders or any list of records your tools return.
Which invoices are still unpaid this month?
Used show_table
The house design: black outline, butter yellow and a marker swipe under the title.
The data it takes
| Field | Type | What it is |
|---|---|---|
| titlerequired | string | |
| columnsrequired | object[] | |
| └ keyrequired | string | Property of each row shown in this column |
| └ labelrequired | string | |
| └ align | left | right | center | |
| rowsrequired | object[] | |
| footnote | string |
Sample data
{
"title": "Outstanding invoices",
"columns": [
{
"key": "number",
"label": "Invoice"
},
{
"key": "client",
"label": "Client"
},
{
"key": "due",
"label": "Due"
},
{
"key": "amount",
"label": "Amount",
"align": "right"
}
],
"rows": [
{
"number": "F260031",
"client": "Fjord Furniture",
"due": "Oct 15",
"amount": "€4,200.00"
},
{
"number": "F260032",
"client": "Aurora Café",
"due": "Oct 20",
"amount": "€2,750.00"
},
{
"number": "F260033",
"client": "Prism Studio",
"due": "Oct 31",
"amount": "€6,480.00"
},
{
"number": "F260034",
"client": "Brio Workshops",
"due": "Nov 5",
"amount": "€1,320.00"
}
],
"footnote": "Amounts include VAT."
}The tool that shows it
A widget made from this template is shown by one tool. The model reads its description to decide when to call it and fills the input schema with the data. This is the definition Widgetry exports:
{
"name": "show_table",
"title": "Table",
"description": "Shows tabular data: the caller defines the columns (key and header) and passes one object per row. Use it for lists of records such as invoices, leads or orders.",
"inputSchema": {
"type": "object",
"required": [
"title",
"columns",
"rows"
],
"properties": {
"title": {
"type": "string"
},
"columns": {
"type": "array",
"items": {
"type": "object",
"required": [
"key",
"label"
],
"properties": {
"key": {
"type": "string",
"description": "Property of each row shown in this column"
},
"label": {
"type": "string"
},
"align": {
"type": "string",
"enum": [
"left",
"right",
"center"
]
}
}
}
},
"rows": {
"type": "array",
"items": {
"type": "object"
}
},
"footnote": {
"type": "string"
}
}
}
}More templates
- BoardColumns of cards with labels, dates and people. Like a Trello board.
- Aurora cardA featured announcement with a headline, a figure and a button, dressed differently by each design.
- 3D globeA WebGL globe with three.js that spins on its own and can be dragged, with a dot per place.
- WeatherThe weather for a place with animated SVG icons and the coming hours; each design paints its own sky.
- Progress ringsGoals as SVG rings that fill up as they appear, with their percentage.
- Area chartA series over time as an SVG curve with a gradient fill that draws itself in.
- 3D carouselCards on a ring that spins in 3D with CSS perspective. Pauses on hover.
- CountdownDays, hours, minutes and seconds to an event, ticking live with a little jump.
- MilestonesFigures that count up from zero and cascade in, animated with GSAP.
- DonutParts of a whole with Chart.js: animates in and responds to the mouse.
- MetricsA row of key figures with their change against the previous period.
- Bar chartHorizontal bars with their values, in the order they arrive.