Skip to main content

Add Files to Clipboard

Command description​

Add the specified local files to the system clipboard. After running this command, paste them in File Explorer, a chat window, or another application that accepts files from the clipboard.

Command Input Parameters​

input parametersInput parameter typeDescription
File Pathstr or list[str]Local file path or list of file paths to add to the system clipboard

Command Output Parameters​

None

Note​

  • Each file path must exist; otherwise, the command reports an error.
  • This command will replace the contents of the current system clipboard.
  • This command only places files on the clipboard; it does not paste them. Use Ctrl+V or a corresponding input command in a subsequent step.

Generation Notes​

  • Place file objects on the system clipboard for pasting; do not copy the textual contents of the files.