Custom context menu
Add your own actions to the right-click menu, such as clauses, AI rewrites, and API calls.

Applications could add their own sections and items to the right-click menu next to the built-in options. Each item had a label, an optional icon, an action handler, and an optional visibility check. The handler received the editor and a context describing the selection, whether the caret was in a table, list, or tracked change, the document mode, and whether the menu opened from a click or a slash command.