PotionUI Docs v0.3.0

Contributing a Generation Details action

The Generation Details modal's header (GenerationDetailsModal.svelte) can carry a plugin-contributed icon button, alongside the generation id/status/navigation controls. Declare it under contributions: in manifest.yml:

yaml
contributions:
  - slot: "generation.detail.actions"
    component: "MyDetailAction.svelte"
    label: "My action"
    order: 100
    require_role: "ADMIN"   # optional

It's mounted via <PluginSlot hookName="generation.detail.actions" tooltips context={{...}}>, so your component receives {generationId, presetId, mode, fileIndex, filename, fileUrl, fileType} for the currently displayed file through its context prop - full payload in GET /api/plugins/hooks/catalog. Give the contribution a label: the host wraps your component in the app's tooltip with that text, so your button must not set a native title.