No API for this - to my knowledge. If you find anything, let me know. In a similar context, whatever M365 Copilot does directly within Word, Excel, PPT, Outlook, etc - has no API. Because in all these cases, the output directly sends commands to the app.