Macro attachment parameter does not retrieve the attachments in drop down

I was trying to implement a macro which should just display the selected attachment content from the selected page. I did changes in atlassain-connect.json and added two parameters

  1. ‘confluence-content’ type for page selection and 2) ‘attachment’ type to retrieve the attachments based on the page chosen.
    Why is the ‘attachment’ parameter does not retrieve the current attachments list in the drop-down?
    Do I need to add any additional changes?