---
title: "Find files"
method: GET
path: "/find/file"
---

# Find files

`GET /find/file`

Search for files or directories by name or pattern in the project directory.

## Query parameters

- `directory` string
- `workspace` string
- `query` string, required
- `dirs` 'true' | 'false'
- `type` 'file' | 'directory'
- `limit` integer

## Response `200`

File paths

- string[]

---

[API](https://skmtc.net/kaaass/apis/opencode.md) · [All operations](https://skmtc.net/kaaass/apis/opencode/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kaaass/opencode/versions/8bb9a15bd144/schema)
