Just use the SF-IMAGE parameter type. Once for each image you want as input.
For the script-fu to operate on the active image, the first two parameters should be SF-IMAGE followed by SF-DRAWABLE, and the script has to be registered to the "" menu.
Add a second SF-IMAGE parameter as third parameter, bellow the SF-IMAGE and chec what you get back.