> It's not a good idea to call local APIs within Zotero
I am not, in fact, calling the local API from within Zotero.
> and the ability to
call local APIs from plugin code can be disabled in the future.
I also do not want to retrieve the item data inside a worker. Cool idea though. I don't see the benefit to disabling this, but that's not my call to make.
I am calling the local API from outside Zotero. There's a few things which I can't (yet) do via the local API (like writes, but also in this case rendering annotations onto a PDF) and I'm augmenting those through code ran through debug bridge. But I keep to the local API for anything it can do that I need.
I still don't know why I'm getting null back, unless the
library.id I'm getting back from the API is not the libraryID.