Skip to main content

list-files

List files in Directus with optional folder or type filter Arguments: [--folder <name>] [--type <mime-prefix>].

Source facts

Repository
Agents-Store/codex-plugins
Last source activity
November 1, 2026 at 02:46
Detected SKILL.md language
English
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
list-files
description
List files in Directus with optional folder or type filter Arguments: [--folder <name>] [--type <mime-prefix>].
# 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 1. If `--folder` provided: - Call `folders` tool with `action: "read"` to find folder UUID by name - Use folder UUID in file filter 2. Build file query: ```json { "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>/" } }` 3. Call `files` tool with the query 4. Display as table: title, filename, type, size, dimensions, folder 5. Format filesize as human-readable (KB, MB) ## Example Input: `--type image --folder Products` Lists all image files in the "Products" folder.
View on GitHub