Skip to main content

search

client.fileRead.search(params?: FileSearchParams): Promise<FileSearchResult[]>

Searches for files matching a query string.

Performs a text-based search across file names and paths in the project. Returns matching files with their paths and metadata.

Parameters

ParameterTypeRequiredDescription
paramsFileSearchParamsNoOptional search parameters including the query string

Returns

Promise<FileSearchResult[]> — A promise that resolves to an array of matches

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.fileRead.search();
console.log(result);