---
title: "Search for text content in files"
method: GET
path: "/filesystem-content-search/{path}"
tags: ["filesystem"]
---

# Search for text content in files

`GET /filesystem-content-search/{path}`

Searches for text content inside files using ripgrep. Returns matching lines with context.

## Path parameters

- `path` string, required

## Query parameters

- `query` string, required
- `caseSensitive` boolean
- `maxResults` integer
- `filePattern` string
- `excludeDirs` string

## Response `200`

Content search results

- ContentSearchResponse
  - `matches` ContentSearchMatch[], required
    - `column` integer, required
    - `context` string
    - `line` integer, required
    - `path` string, required
    - `text` string, required
  - `query` string, required
  - `total` integer, required

## Other responses

- `400` — Bad request
- `422` — Unprocessable entity
- `500` — Internal server error

---

[API](https://skmtc.net/blaxel/apis/blaxel-control-plane.md) · [All operations](https://skmtc.net/blaxel/apis/blaxel-control-plane/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/blaxel/blaxel-control-plane/versions/dfa264bc72ee/schema)
