I understand you want to pass an arbitrary set of named arguments to a procedure. This list of names is not specified by the ad_proc that defines the procedure. You can get get_opts will will create an array containing all the named arguments.