Files
memind/skills/table-viewer/SKILL.md
John 2e14873f2d Initial commit: Memind H5 portal with MindSpace, Plaza, and agent jobs.
Track application source and tests; exclude local env, user workspaces, and runtime data via .gitignore.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 15:04:43 -07:00

922 B

name, description
name description
table-viewer 表格可视化技能:将数据渲染为可排序、筛选的交互式表格(需启用 tableviewer 扩展)

表格查看器

使用 tableviewer MCP 扩展在聊天中渲染交互式数据表格。

何时使用

  • 用户展示结构化数据(数据库查询结果、CSV、对比列表)
  • 数据超过 5 行且有多列时,优先用表格而非 markdown

前提

Settings → Extensions 中启用 Table Viewer 扩展。

工具

show_table(title, columns, rows) — 渲染可排序/筛选表格

示例

show_table(
  title: "销售数据",
  columns: ["月份", "销售额", "环比增长"],
  rows: [["1月", 12000, "+5%"], ["2月", 13500, "+12.5%"]]
)

规则

  1. columns 与每行数据顺序必须一致
  2. 数值类型保持为数字(不要转成字符串),排序才准确
  3. 超过 500 行时提示用户过滤后再展示