Via file compress PNG, JPEG, and WebP on the execution host, up to 5 MiB each. Images are uploaded to TinyPNG; only invoke when the user explicitly requests compression of specified images, and never upload user files without authorization for exploration or verification.
mearl tinypng --payload '{"command":"file","input":{"filePath":"/tmp/input.png","outputPath":"/tmp/input-compressed.png"}}'
filePathandoutputPathbelong to the execution host; output must be new files that do not yet exist, without overwriting the originals.- Return the original filename, size, and type; the compressed size, type, and dimensions; and the output path. Do not create a toolbox task.
- When encountering a domain permission error, authorize
request_permissionfollowing Mearl'stinify.cnprocess and retry. If the upload result is unclear, do not automatically re-upload; explain to the user first. - Users can also select, drag in, or paste images in the toolbox "Image Compression" to preview, copy, or download results. List and batch management are only for the tool page.
If not registered, run npx @mearl/setup plugin "$SKILL_DIR" from the current Skill's actual directory and retry.