Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Table.listFiles

Table.listFiles([maxResults, { fileIdVariable, fileNameVariable, signal }]) → Promise<File[]>

Lists the files in a file index table (or any table with a variable of file ids).

Parameters:

maxResults : number, optional The maximum number of files to return. Defaults to all files.

fileIdVariable : string, default 'file_id' The variable containing the files' ids.

fileNameVariable : string, default 'file_name' The variable containing the files' names.

signal : AbortSignal, optional

Returns: Promise<File[]>

Was this helpful?