> ## Documentation Index
> Fetch the complete documentation index at: https://docs.joystream.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Run artifacts

> The files and logs a run produces, where to find them, and how to download them from the web, the CLI, or an MCP client.

When a step runs a script or a command line tool, the files it writes and the output it prints are kept with the run. A report, a spreadsheet, a chart, a PDF, and the step's stdout and stderr are all run artifacts. Each one is tied to the run and to the step that produced it.

Steps that only call a model produce no files. Their result is the story's output, which you can save as a file from any of the surfaces below.

## In the web UI

Open a run. Each step in the timeline shows how many files it produced. Open the step and the drawer lists its **Files** and, separately, its **Logs**. Click a file to download it. A file that one step named in its output but another step saved is labelled with the step that saved it.

![A run page with the execution timeline on the left and a step drawer on the right listing the PDF the step produced and its stdout log](https://mintcdn.com/joystream/_JHoEHVWg6RV9AVX/images/run-files.png?fit=max\&auto=format\&n=_JHoEHVWg6RV9AVX\&q=85\&s=c0c7f3cf103a32f027c2e23bcd5c0a90)

A step's drawer on the run page, with its files and logs.

The run's result card shows the files of the final step as the run's deliverable. The **Download output** control on a step saves the step's output as a Markdown or JSON file.

## From the CLI

```bash theme={null}
jstm agent run artifact list failed-payment-digest/runs/12
jstm agent run artifact download failed-payment-digest/runs/12 --dir ./digest-12
jstm agent run artifact show failed-payment-digest/runs/12 4d90c7e2-6b18-4a55-9f31-c8ab27e05d10 --text
```

`download` saves every file plus each story's output as a file, under the run's own paths. Pass an artifact id to save one file, or `--no-outputs` to skip story outputs. `show --text` prints a text file up to 1 MiB.

The same three verbs exist on a story ticket as `jstm ticket artifact list|show|download`. `jstm ticket show` lists a story's files. See [`jstm agent run`](https://docs.joystream.ai/cli/agent-run) and [`jstm ticket`](https://docs.joystream.ai/cli/ticket).

## From an MCP client

A coding agent connected to the [JoyStream MCP server](https://docs.joystream.ai/features/joystream-mcp-server.md) sees a run's files in `get_run`, `wait_for_run`, and `get_ticket`, and fetches one with `get_artifact`. The tool returns a download link and a safe file name, or the file's text when it is 64 KiB or smaller. The server's `joystream://docs/artifacts` resource tells the coding agent how to list, offer, and save files without exposing the link to you.

## How downloads work

Every download goes through a link that works once and expires after 5 minutes. Reusing a link fails. Minting a link requires the same access as reading the run, and each download is recorded in the audit log. An agent run cannot mint links for itself; later steps in the same run reference an earlier file as `artifact://<id>` instead.

Files larger than 50 MiB are not kept. A run keeps its files until the run itself is deleted.

Build directories and dependency folders such as `node_modules/`, `.venv/`, and `.git/` are skipped by default. A run can adjust that with a `.collectignore` file in its output folder, using gitignore syntax.

## See also

* [Review runs and tickets](https://docs.joystream.ai/guides/review-runs-and-tickets.md)
* [`jstm agent run`](https://docs.joystream.ai/cli/agent-run)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.