# willo_list_files

> List the files of the business's site code from its GitHub repository, at the draft branch when one exists (the work in progress), otherwise main…

Generated from Willo's code at each release.

Source: https://www.willo.ai/docs/reference/mcp-tools/willo_list_files

**List site files.** List the files of the business's site code from its GitHub repository, at the `draft` branch when one exists (the work in progress), otherwise `main` (what is live). This is the same view a read-only clone of the repo gives; an edit Willo's chat is making this very minute may not be on the branch yet. Free, read-only.

## Access

- **Token**: read or read + act.
- **Approval**: Never. This tool only reads.
- **Metered**: counts toward a per-business, per-minute limit for this kind of call. See [Limits](https://www.willo.ai/docs/reference/limits).

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `path` | string | no | Directory to list, repo-relative (e.g. `src/pages`). Omit for the whole tree. |
| `pattern` | string | no | Glob to filter by, matched against the path under `path` and against the file name (e.g. `*.astro`, `**/*.css`). |

## Related

- [All MCP tools](https://www.willo.ai/docs/reference/mcp-tools)
- [Error codes](https://www.willo.ai/docs/reference/errors)
- [Draft and live](https://www.willo.ai/docs/ai-agents/draft-and-live)
