List Files
Follow the file-management skill (${CLAUDE_PLUGIN_ROOT}/skills/file-management/SKILL.md) for the files, folders and asset tools; read it before the first call.
Arguments
--folder <name>— Filter by folder name--type <mime-prefix>— Filter by MIME type prefix (e.g.,image,application/pdf)
Process
If
--folderprovided:- Call
folderstool withaction: "read"to find folder UUID by name - Use folder UUID in file filter
- Call
Build file query:
{ "action": "read", "query": { "fields": ["id", "title", "filename_download", "type", "filesize", "width", "height", "folder.name"], "filter": {}, "sort": ["-uploaded_on"], "limit": 25 } }- Add folder filter:
{ "folder": { "_eq": "<uuid>" } } - Add type filter:
{ "type": { "_starts_with": "<prefix>/" } }
- Add folder filter:
Call
filestool with the queryDisplay as table: title, filename, type, size, dimensions, folder
Format filesize as human-readable (KB, MB)
Example
Input: --type image --folder Products
Lists all image files in the "Products" folder.