List files in the open Overleaf project
list_filesLists project files and folders as flat project-relative paths, with optional kind and path filters; opens a specified project if not active.
Instructions
Returns the file tree of the currently open project as a flat list of project-relative paths. Uses the cached file tree when the requested project is already active; otherwise project_id opens it first. Each entity has a path (e.g. 'chapters/intro.tex'), an id, and a kind ('doc' | 'file' | 'folder').
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_files"
}
}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 |
| project_id | No | Overleaf project id from list_projects or open_project. Opens the project if it is not already active. Pass it on every call when MCP sessions may change between calls. Writes without it only go to the project last confirmed by open_project or by a write naming it. | |
| path_contains | No | Case-insensitive substring filter on the project-relative path. |