Skip to main content
GET
/
filesystem-content-search
/
{path}
Search for text content in files
curl --request GET \
  --url https://sbx-{sandbox_id}-{workspace_id}.{region}.bl.run/filesystem-content-search/{path} \
  --header 'Authorization: Bearer <token>'
{
  "matches": [
    {
      "column": 10,
      "context": "previous line\ncurrent line\nnext line",
      "line": 42,
      "path": "src/main.go",
      "text": "const searchText = 'example'"
    }
  ],
  "query": "searchText",
  "total": 5
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

path
string
required

Directory path to search in

Query Parameters

query
string
required

Text to search for

caseSensitive
boolean

Case sensitive search (default: false)

maxResults
integer

Maximum number of results to return (default: 100)

filePattern
string

File pattern to include (e.g., *.go)

excludeDirs
string

Comma-separated directory names to skip (default: node_modules,vendor,.git,dist,build,target,pycache,.venv,.next,coverage)

Response

Content search results

matches
object[]
query
string
Example:

"searchText"

total
integer
Example:

5