---
title: "List Agent Files"
method: GET
path: "/api/agents/{agent_id}/files/list"
tags: ["files"]
---

# List Agent Files

`GET /api/agents/{agent_id}/files/list`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/agents/{agent_id}/files/list`
- Auth: HTTP bearer

List a directory inside the agent's container (file browser).

Scoped to the agent's persistent volume (framework-dependent mount:
/data, /zeroclaw-data, or /opt/data) so the browser can't wander the
rest of the container filesystem. `path` defaults to the volume root;
the response reports that root so clients don't need to hardcode it.
Returns each entry's type, size and mtime.

## Path parameters

- `agent_id` string, required

## Query parameters

- `path` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/maritime/apis/maritime-api.md) - [All operations](https://skmtc.dev/maritime/apis/maritime-api/llms.txt) - [OpenAPI document](https://skmtc.dev/maritime/apis/maritime-api/revisions/acd712090ad6?raw)
