There’s a plugin that exposes a local api, which folks use for this type of access pattern. Obsidians sdk for plugins is not external, but it does exist and is used broadly.