List media files
get_media_files_namesList matching file names in Anki's media folder by glob pattern to verify whether a media file exists, with an optional result limit.
Instructions
Lists file names in Anki's media folder matching pattern. Returns {"names": string[], "total": number, "truncated": boolean} with at most limit names (default 100). Use it to check whether a file already exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return (default 100). | |
| pattern | No | Glob over file names, e.g. "cat*" or "*.png". Default "*". |