list_files
List files and folders in the user's SimplyPrint storage. With pid set, only returns files compatible with that printer (full compatibility check). With global_search=true (default), searches recursively across all folders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| f | No | Folder id to list (0 or omitted = root) | |
| limit | No | Cap on returned files (1-500). Useful with sort_by for "5 largest files" or "10 most recent". | |
| search | No | Filename substring search. Matches with or without extension — "Schleife oben 1_PLA_1h4m" and "Schleife oben 1_PLA_1h4m.3mf" both find the same file. | |
| compact | No | Keep at default true. Returns minimal data tuned for AI context. Only set to false if you specifically need fields the compact view drops, and then pair with limit to keep the response small. | |
| sort_by | No | Sort files by this field (folders are not affected). Default: repository order (user's saved files-page sort). | |
| sort_dir | No | Sort direction; default desc (newest/largest first). | |
| has_gcode | No | true = only files with a parsed G-code analysis (printable); false = only non-printable files (models, etc.) | |
| printer_id | No | Only return files compatible with this printer (full compatibility check, not just model) | |
| global_search | No | If true (default), search recursively across all folders instead of only the current one |