Skip to main content

autocomplete

client.fileRead.autocomplete(params?: FileAutocompleteParams): Promise<FileAutocompleteResult[]>

Gets autocomplete suggestions for file paths.

Returns file path completions matching a partial input string. Useful for building file picker UIs with type-ahead functionality.

Parameters

ParameterTypeRequiredDescription
paramsFileAutocompleteParamsNoOptional parameters including the partial path to complete

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.autocomplete();
console.log(result);