Make tools scriptable or make a filter version of Smart Patch Tool

As a general note, it would be wonderful if all tools were scriptable via Python, however more specifically at the moment I’m looking for the ability to run the Smart Patch Tool as a filter on a section of the image. I’m not sure why this isn’t possible? Seems like a very basic thing that people would want to do.

Please make either tools scriptable or make filter versions of tools (like Smart Patch Tool) where applicable.