Meanwhile my ask is user scripts — custom formulas coded as JS with limited scope that could interact with doc’s data, receive arguments and produce an output:
If a formula can return an image blob (e.g. composed with Canvas or SVG) or an iframe container with arbitrary code, that’s already a huge deal.