---
title: "List the subdirectories of a directory on the daemon host"
method: GET
path: "/api/v1/fs/dirs"
tags: ["fs"]
---

# List the subdirectories of a directory on the daemon host

`GET /api/v1/fs/dirs`

## Query parameters

- `path` string — Absolute directory on the daemon host to list. When omitted, the daemon user's home directory.

## Response `200`

OK

- ListDirsResponse
  - `entries` FSEntry[], required — Subdirectories, excluding dotted names.
    - `gitRepo` boolean, required — True when the directory carries a .git entry (clone or worktree checkout).
    - `name` string, required — Directory name.
    - `path` string, required — Absolute path of the directory on the daemon host.
  - `parent` string, required — Absolute path of the listed directory's parent; equals path at the filesystem root.
  - `path` string, required — Absolute path that was listed.
  - `truncated` boolean — True when the listing hit the entry cap and more subdirectories exist.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2026-09-22** `ddc4b9bdba9c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/fs/dirs/get.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) · [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) · [OpenAPI document](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/revisions/c9673ebc394b?raw)
