Advanced : Event Hooks
Attaching listeners to these events can allow automation of operations/workflows
Events
Schemas
zotero-roam:metadata-added
{
args: {
// The blocks received for insertion into the page.
// Defined only if the default formatter or a JavaScript function was used.
blocks?: [...],
// The SmartBlock configuration received.
// Defined only if a SmartBlock was used.
smartblock?: {
param: "srcUid" | "srcName",
paramValue: "some value"
}
uid: "some_uid",
},
error: null | Error, // The error thrown, if any
page: {
new: true | false, // Indicates if the Roam page was created during the operation
title: "@citekey", // The title of the Roam page
uid: "some_uid" // The UID of the Roam page
},
raw: {
item: {...}, // The item's full Zotero metadata
pdfs: [...], // The item's linked PDFs
notes: [...] // The item's linked notes/annotations
},
success: null | true | false // The outcome of the operation
}zotero-roam:notes-added
zotero-roam:tags-deleted
zotero-roam:tags-modified
zotero-roam:update
zotero-roam:write
Last updated