Skip to main content
Glama

media_deleteMediaFile

Remove specific files from Anki's media folder by specifying the filename, ensuring efficient management and cleanup of multimedia resources.

Instructions

Deletes the specified file from Anki's media folder.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYesThe name of the file to delete from the media collection.

Implementation Reference

  • Handler function for the 'media_deleteMediaFile' tool (prefixed during registration). Deletes the specified media file by calling AnkiConnect API via anki_call. Includes inline schema for 'filename' parameter.
    @media_mcp.tool( name="deleteMediaFile", description="Deletes the specified file from Anki's media folder.", ) async def delete_media_file_tool( filename: Annotated[ str, Field(description="The name of the file to delete from the media collection."), ], ) -> None: return await anki_call("deleteMediaFile", filename=filename)
  • Registers all tools from media_mcp (including deleteMediaFile) under the 'media_' namespace/prefix in the main AnkiConnectMCP server.
    await anki_mcp.import_server("media", media_mcp)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ujisati/anki-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server