List files in the open Overleaf project
list_filesGet the file tree of the current Overleaf project as a flat list of relative paths. Filter by type (doc, file, folder) or path substring to locate files quickly.
Instructions
Returns the file tree of the currently open project as a flat list of project-relative paths. Cheap — uses cached data from open_project, no network. Each entity has a path (e.g. 'chapters/intro.tex'), an id, and a kind ('doc' | 'file' | 'folder').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Filter by entity kind. 'doc' = editable .tex/.md files, 'file' = binary assets (images, PDFs), 'folder' = directories. | all |
| path_contains | No | Case-insensitive substring filter on the project-relative path. |