Skip to main content

autocompleteForSearch

client.fileRead.autocompleteForSearch(params?: FileSearchParams): Promise<FileAutocompleteResult[]>

Gets autocomplete suggestions optimized for search input.

Similar to but tailored for search-box contexts where the user is typing a search query rather than a file path.

Parameters

ParameterTypeRequiredDescription
paramsFileSearchParamsNoOptional search parameters including the partial query

Returns

Promise<FileAutocompleteResult[]> — A promise that resolves to an array of suggestions

Example

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

const client = new CodeBoltClient();

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