menu item names in floating menu with content script

I'm having a really hard time figuring out how to give the menu items display text when using content script to dynamically generate my floating menu.

I used the example given in BTT Floating Menu configuration, content script tab to make the content script below. it shows two menu items in the floating menu, both of which work to do what they're supposed to do (running named functions). But they have NO DISPLAY TEXT. please help. thanks

async function retrieveJSON() {
  let items = [
    {
        "title": "focused element",
        "action": "named::focused element"
    },
    {
        "title": "hovered element",
        "action": "named::hovered element"
    }
  ];

  return JSON.stringify(items);
}

There is indeed an issue with that in the current build. I'll look into it now, should be resolved with the next alpha.

In general for dynamic floating menus it is best to configure one template item in the UI, then disable it and right-click it to copy its UUID.
You can then provide that UUID in your script to get all the styling info from the template item. This would also workaround the issue you are seeing

async function retrieveJSON() {
let items = [
    {"title": "test item 1", templateItemUUID: "485A8073-A599-4724-9FEB-65F57F447B8B"}
]; 

 return JSON.stringify(items);

}

should be resolved in 5.555 alpha

thanks, the workaround works, but i have to restart btt to get changes i make to template item to take effect in the dynamic floating menu. can you fix please?

Also a bug i just noticed:
the keyboard shortcut to get to floating menus section is command shift 3 but that conflicts with macOS keyboard shortcut to take full screen screenshot. can't figure out how to change that. thanks.