SuperAPI AI Directory

paste-image

Office & productivity

View repository

Updated 10-15 17:31

About this skill

Skill: paste-image

Description

This skill provides a script for pasting an image from the macOS clipboard directly to a specified PNG file. This is a safe and reliable way to get image data from the user's clipboard into the workspace.

When to use

This skill should be used when image data needs to be read from the user's clipboard on macOS. For example, if the user says "I have an image in my clipboard, can you analyze it?".

Command

To use this skill, run the run.sh script and pass the desired output path as an argument.

paste-image/scripts/run.sh <输出路径>

Parameters

  • <输出路径> (required): The full absolute path where the PNG image file should be saved. The directory for this path must already exist.

Error handling

  • If no output path is provided, the script will exit with an error.
  • If the directory for the output path does not exist, the script will exit with an error.
  • If the clipboard does not contain a valid PNG format image, the script will exit with an error. In this case, any empty file that may have been created will be automatically deleted.