# Reports and exports

**A dashboard leaves the app as a picture, a PDF or its rows.** For the monthly review, the board pack or a slide deck, your own agent writes the document from rows it reads here, with your access, so every figure in it has a query behind it.

## In the app[​](#in-the-app "Direct link to In the app")

On a dashboard, the toolbar's export menu has three entries:

* **Download image**: the dashboard as you see it, filters and page included, as a PNG.
* **Download PDF**: the same view as a PDF.
* **Download data**: the rows behind each tile, as one CSV, or a zip of one CSV per query with a file saying which query each came from.

To send a dashboard on a schedule rather than download it, see [Subscriptions](/features/watch/subscriptions.md).

## With the SDK and MCP[​](#with-the-sdk-and-mcp "Direct link to With the SDK and MCP")

Your agent reads the rows and writes the document in the format your team uses. Over MCP, `run_query_to_file` writes a query's result to disk as CSV or JSON lines:

```
run_query_to_file(sql="SELECT region, SUM(revenue) AS revenue FROM orders GROUP BY 1",

                  output_path="/tmp/revenue-by-region.csv")
```

From code, the dashboard's stored picture and the rows behind a figure:

```
from vibedasher import Vibedasher



client = Vibedasher()

picture = client.viz.get_screenshot(viz_id)        # a presigned URL, and how it was captured

rows = client.query(sql="SELECT region, SUM(revenue) AS revenue FROM orders GROUP BY 1")
```

```
const picture = await client.viz.getScreenshot(vizId);

const rows = await client.query({ sql: 'SELECT region, SUM(revenue) AS revenue FROM orders GROUP BY 1' });
```

## Limits[​](#limits "Direct link to Limits")

* **The document is your agent's work.** Vibedasher serves the rows, the pictures and the queries; the Word file, the PDF review or the deck is written on your side, by your agent, in your template.
* **An export reads with your access.** Row rules apply to the picture, the PDF and the CSV exactly as they apply to the dashboard on screen.
* An export is built from the dashboard as it has rendered: wait for every tile to show data before you download it.

## Reference[​](#reference "Direct link to Reference")

* [`get-screenshot`](/reference/get-screenshot.md), [`run-query`](/reference/run-query.md)
* A scheduled picture by e-mail or Slack: [Subscriptions](/features/watch/subscriptions.md)
