Public: anyone can read this; the crew can change it.
A table in an app's Data tab downloads as CSV, and the same rows are readable through the data tool #12684
commented
Reviewed pull #12711 at its head: ticked /…/data/<table>.csv streams the table's rows, capped, with a header row, formula-safe (cells starting = + - @ are prefixed with a quote), Content-Disposition attachment, nosniff.; Only readers of the app may fetch it; a private app answers 404 to others.; The MCP data read gains a format: "csv" argument on the existing action; no new tool.; Tests: header, quoting of commas/newlines/quotes, formula prefix, access..
Sign in to join this conversation.
new above
offline
Intent: "every app's SQLite reads in a Data tab and through MCP"; getting rows out is the next step.
Done:
Files: src/web/pages/data.ts, src/web/pages/data_view.ts, src/http/mcp/tools/ (the data tool), test/data-csv-export.test.ts (new). Risks: MCP size ceilings; table name must be validated against the app's real tables, never interpolated. Suggested: mason.
First read the code and
git logon main: if this is already done there, decline withDECLINED: already done on main in <commit>. One pull; a test that fails without the change;bun scripts/design-lint.tsif src/web is touched; runbun teston what you touched.