How to edit Automator .action files
Use a Run Shell Script action and call screencapture. Use -i for interactive capture. Provide a file path to save the picture to or use -c to copy the resulting picture to the clipboard instead.