Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Purge ImageKit Cache
IMAGEKIT_IO_PURGE_CACHEPurge CDN and ImageKit internal caches for a specific URL or URL pattern. Use this action when you need to: - Invalidate cached content after updating an image - Force CDN to fetch the latest version of a file - Clear cache for a directory using wildcard (*) Note: Cache purging is asynchronous. Use the returned requestId with IMAGEKIT_IO_PURGE_STATUS to check completion. Monthly purge limits apply based on your pricing plan (typically 1000 URLs/month).
Check purge cache status
IMAGEKIT_IO_PURGE_STATUSTool to check the status of a cache purge request. Use after initiating a purge to retrieve its current state. Example: "What's the status of purge request id abc123?"
Rename File
IMAGEKIT_IO_RENAME_FILERenames an existing file in the ImageKit media library. Use this action when you need to change a file's name. Important: Old URLs will stop working after rename (unless CDN cache is active). This operation renames all file versions. Set purgeCache=True to clear CDN cached content for the old URL. Returns 404 if file not found, 409 if a file with the new name already exists in the same folder.
Restore File Version
IMAGEKIT_IO_RESTORE_FILE_VERSIONRestores a non-current file version to become the current version in ImageKit. Use this to revert a file to a previous state. First use the List File Versions API to find the versionId of the version you want to restore.
Update Custom Metadata Field
IMAGEKIT_IO_UPDATE_CUSTOM_METADATA_FIELDUpdates an existing custom metadata field's label or schema constraints in ImageKit DAM. Use this to: - Change the display label of a metadata field - Update validation constraints (min/max values, min/max length) - Set or modify the default value - Change whether the field is required Note: The field type and name cannot be changed after creation. At least one of 'label' or 'schema' must be provided in the request.
Update File Details
IMAGEKIT_IO_UPDATE_FILE_DETAILSUpdate an ImageKit file's tags, custom coordinates, custom metadata, remove AI tags, apply extensions, or change publication status. When publication options are supplied, other requested updates are omitted from the request.