Search media files
search-media-filesFind media filenames in Anki's collection.media folder using glob patterns, with limit and offset paging for sorted results.
Instructions
Returns a bounded, sorted page of filenames from Anki's current collection.media 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": "search-media-files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| pattern | No | AnkiConnect glob pattern such as "*.mp3", "_logo*", or "gehen*" | * |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| total | Yes | ||
| offset | Yes | ||
| hasMore | Yes | ||
| pattern | Yes | ||
| returned | Yes |