Automatic generation of schema definition files for standardized op-mode scripts is addressed in T4544. Here we complete the implementation by defining the directives 'genopquery' and 'genopmutation' which dynamically generate resolvers for any script present in the list of scripts rewritten in standardized form. Once scripts are updated to the new format, they can be added to the list, and after the schema definition generation script is run (e.g., at package build time, or on a live system for testing and experiment), they will automatically be exposed by the http-api for requests.