Add glyphs from recipes through API

Hi! I can’t seem to find an answer — is there an API equivalent to the “Add Glyphs” menu button? Some function that creates glyphs with components as it guesses it or from custom recipes?

I tried this, but it of course adds an empty glyph:
Font.addGlyph_(Font.newGlyphWithName_('aacute.ss01'))
There’s also .makeComponentGlyph_() but I don’t understand how to use it

Font.addGlyph_(Font.newGlyphWithName_("aacute.ss01"))

works fine for me. Make sure you have the necessary base components (a and acutecomb are enough here).

Oh, it does indeed, thanks for pointing out! Weird, I must have misspelled something while trying