Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOGSEQ_API_URL | No | URL of your Logseq instance | http://127.0.0.1:12315 |
| LOGSEQ_API_TOKEN | Yes | Your Logseq API token generated from Logseq: API → Authorization tokens |
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| logseq_insert_block | Create a new block in Logseq |
| logseq_create_page | Create a new Logseq page |
| logseq_get_current_page | Get the currently active page or block |
| logseq_get_page | Retrieve information about a specific page |
| logseq_get_all_pages | List all pages in the graph |
| logseq_edit_block | Edit specific block content |
| logseq_exit_editing_mode | Exit block editing mode |
| logseq_get_current_page_content | Get current page's content by each block |
| logseq_get_editing_block_content | Get content of active editing block |
| logseq_get_page_content | Get block page content by each block |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| logseq_insert_block | Insert a new block into Logseq. Can create: - Page-level blocks (use is_page_block=true with page name as parent_block) - Nested blocks under existing blocks - Blocks with custom UUIDs for precise reference Supports before/after positioning and property management. |
| logseq_create_page | Create a new page in Logseq with optional properties. Features: - Journal page creation with date formatting - Custom page properties (tags, status, etc.) - Format selection (Markdown/Org-mode) - Automatic first block creation Perfect for template-based page creation and knowledge management. |
| logseq_get_current_page | Retrieves the currently active page or block in the user's workspace |
| logseq_get_page | Retrieve detailed information about a specific page including metadata and content |
| logseq_get_all_pages | List all pages in the graph with basic metadata |
| logseq_edit_block | Enter editing mode for a specific block |
| logseq_exit_editing_mode | Exit current editing mode |
| logseq_get_current_page_content | Get hierarchical block structure of current page |
| logseq_get_editing_block_content | Get content of currently edited block |
| logseq_get_page_content | Get block hierarchy for specific page |