If the Wallpaper field in Shortcuts automation is disabled (grayed out), it means a photo wallpaper is not set on your current lock screen.

Go to
Settings > Wallpaper > Add New Wallpaper, select Photos, choose an image, and tap
Set as Wallpaper Pair. After setting a photo wallpaper, return to Shortcuts automation and the Wallpaper field will be enabled.