> I always imagined some sort of standard, where apps and services can expose a set of pre-approved actions on the user's behalf
OS specific, but Apple has the Scripting Support API [0] and Shortcut API for their app. Works great.
[0]: https://developer.apple.com/documentation/foundation/scripti...