logseq
Installation
SKILL.md
Logseq Plugin API
Interact with your local Logseq instance through its JavaScript Plugin API. This skill enables reading, writing, querying, and automating workflows in your Logseq graph.
Prerequisites
Logseq must be running locally with a plugin that exposes the API. The standard way is:
- Install a bridge plugin that exposes
logseqAPI via HTTP (e.g., via a custom plugin or localhost endpoint) - Alternative: Use Node.js with
@logseq/libspackage to script against the running Logseq instance
The API is primarily designed for in-browser plugins, so accessing it from external scripts requires a bridge/proxy.
Core API Namespaces
The Logseq Plugin API is organized into these main proxies:
logseq.App
Application-level operations: getting app info, user configs, current graph, commands, UI state, external links.