image-tools-mcp

by kshern
Verified

compress_local_image

Compress a single local image file using TinyPNG API (only supports image files, not folders)

Input Schema

NameRequiredDescriptionDefault
optionsYesOptions for compressing local image

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "options": { "additionalProperties": false, "description": "Options for compressing local image", "properties": { "imagePath": { "description": "Absolute path to the local image file (must be a file, not a directory)", "type": "string" }, "outputFormat": { "description": "Output format (webp, jpeg/jpg, png)", "enum": [ "image/webp", "image/jpeg", "image/jpg", "image/png" ], "type": "string" }, "outputPath": { "description": "Absolute path for the compressed output image", "type": "string" } }, "required": [ "imagePath" ], "type": "object" } }, "required": [ "options" ], "type": "object" }