> For the complete documentation index, see [llms.txt](https://docs.testvibe.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.testvibe.com/testvibe-api/api-reference/files/list_files.md).

# list\_files

List the project's files: stored content (features, generated specs, configs) plus the template scaffolding.

## Request

```
GET /api/v1/ops/projects/{project}/files?prefix=
```

| Parameter | In    | Type   | Required | Description                                    |
| --------- | ----- | ------ | -------- | ---------------------------------------------- |
| `project` | path  | string | yes      | The project's public id.                       |
| `prefix`  | query | string | no       | Filter by path prefix, e.g. `Configurations/`. |

{% tabs %}
{% tab title="cURL" %}

```bash
curl -H "Authorization: Bearer $TESTVIBE_API_KEY" \
  "$TESTVIBE_SERVER/api/v1/ops/projects/$PROJECT/files?prefix=Features/"
```

{% endtab %}

{% tab title="CLI" %}

```bash
testvibe files list
```

{% endtab %}

{% tab title="MCP" %}
Tool **`list_files`** — `{ "prefix": "Features/" }` (optional).
{% endtab %}
{% endtabs %}

## Response

```json
[
  {
    "path": "Features/Login Functionality/login.feature",
    "kind": "feature",
    "source": "project",
    "featureId": 12,
    "bytes": 532
  },
  {
    "path": "Features/Login Functionality/login.spec.js",
    "kind": "spec",
    "source": "project",
    "featureId": 12,
    "bytes": 4817
  },
  {
    "path": "Configurations/Default.config.js",
    "kind": "config",
    "source": "template"
  }
]
```

`source: "project"` entries are stored content (with `featureId` and `bytes`); `source: "template"` entries are the read-only scaffolding a project inherits until it stores its own copy.

## Errors

| HTTP            | When                               |
| --------------- | ---------------------------------- |
| `404 not_found` | No such project in this workspace. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.testvibe.com/testvibe-api/api-reference/files/list_files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
