Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>SHEET-X-RAYNew to Visual Studio Code? Get it now.
SHEET-X-RAY

SHEET-X-RAY

Shunsuke F

|
14 installs
| (0) | Free
Make spreadsheets safe for AI agents and CI. Read-only linter for XLSX and CSV with formula, reference, merge, and layout diagnostics.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SHEET-X-RAY

Version Installs Publish License

Make spreadsheets readable, verifiable, and safe for AI agents and CI pipelines. SHEET-X-RAY is a read-only structural linter for .xlsx and .csv files. It surfaces formula errors, broken references, merge collisions, and estimated layout defects through VS Code Problems, CLI, and MCP.

Japanese README

Illustrative VS Code Problems view generated from SHEET-X-RAY findings

Why SHEET-X-RAY?

Spreadsheets combine binary packaging, XML, formulas, merged ranges, and display metadata. Silent defects can break downstream data pipelines or give an AI agent incomplete evidence. SHEET-X-RAY inspects that structure locally without opening Excel or executing macros.

  • Guardrail for AI agents: expose deterministic workbook, sheet, cell, formula, reference, and anomaly identities to Copilot, Claude, Cursor, Cline, or another MCP client.
  • Native VS Code diagnostics: scan active files, scan the workspace, or automatically rescan saved XLSX and CSV files.
  • Regression checks for PRs and CI: save structured JSON scans and compare before/after reports with sheetx_diff_scans or the CLI diff command.

Use Cases

  1. Validate a workbook before providing it to an AI agent.
  2. Review formula and layout regressions in pull requests or delivery checks.
  3. Rescan an AI-edited spreadsheet and confirm that existing findings were resolved without changing the source file.

What It Detects

Category Checks
Formula integrity Error tokens including #REF!, #VALUE!, #DIV/0!, and #N/A; missing sheet references; statically detectable circular references
Layout and merging Content collisions inside merged cell ranges
Visibility and clipping Estimated text clipping from column metadata; hidden XLSX worksheets when included

VS Code Commands

Open the Command Palette and run:

  • SHEET-X-RAY: Scan Active Spreadsheet
  • SHEET-X-RAY: Scan Workspace
  • SHEET-X-RAY: Copy AI Report
  • SHEET-X-RAY: Save AI Report

Findings appear in VS Code Problems. sheetXray.autoScanOnSave is enabled by default; sheetXray.includeHidden and sheetXray.csvDelimiter control scan behavior.

MCP Integration

Installing the extension contributes a local stdio MCP server to compatible VS Code clients. It exposes:

  • sheetx_scan: scan one XLSX or CSV file.
  • sheetx_scan_workspace: discover and scan spreadsheets below a workspace root.
  • sheetx_diff_scans: compare two saved SHEET-X-RAY reports.

A standalone MCP client can launch the bundled server from the extension or build directory:

{
  "mcpServers": {
    "sheet-xray": {
      "command": "node",
      "args": ["C:\\path\\to\\sheet-xray\\dist\\mcp.cjs"]
    }
  }
}

Replace the args path with the absolute path to dist/mcp.cjs in your extension installation or cloned repository.

Illustrative MCP result generated from SHEET-X-RAY output

Example Finding

The scanner returns its normalized units and anomalies together. This excerpt comes from an actual scan fixture:

{
  "summary": {
    "targetCount": 2,
    "errorCount": 4,
    "warningCount": 1
  },
  "anomalies": [
    {
      "code": "FORMULA_ERROR",
      "severity": "error",
      "targetIds": ["s1-cC1"],
      "message": "Data!C1 contains #REF!.",
      "evidence": {
        "address": "C1",
        "formula": "Missing!A1",
        "errorCode": "#REF!"
      }
    }
  ]
}

CLI

From a built repository checkout or packaged server directory:

node dist/cli.cjs scan .\book.xlsx --include-hidden
node dist/cli.cjs scan .\data.csv --delimiter ","
node dist/cli.cjs diff .\before.json .\after.json

Safety and Limitations

  • Scanning is read-only. It does not modify values or styles, recalculate formulas, resolve external connections, open macros, or upload source data.
  • XLSX and CSV parsing runs locally. No telemetry is sent by the scanner.
  • Text clipping is a static estimate based on character width and column metadata. SHEET-X-RAY does not claim pixel-exact Excel rendering parity.
  • Statically detectable formula defects are reported from the stored workbook structure; SHEET-X-RAY is not an Excel calculation engine.

AI-IN-THE-LOOP PACK

SHEET-X-RAY is part of AI-IN-THE-LOOP PACK, with companion scanners for presentations, documents, and CI workflows.

Report a defect or request a feature in GitHub Issues.

License

Apache License 2.0

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft