Skip to main content
Glama

Logseq MCP Tools

by apw124

get_page_blocks

Retrieve structured blocks from a specific Logseq page, including hierarchical details like parent ID, indentation level, and left block relationships, using the page name as input.

Instructions

Gets all blocks from a specific page in the Logseq graph. For journal pages, use the format "mmm dth, yyyy" (e.g., "Apr 4th, 2025"). Returned blocks contain hierarchical structure information: - parent: The parent block's ID - level: The indentation level (1 for top-level, 2+ for indented) - left: The block to the left (typically the parent for indented blocks) Args: page_name: The name of the page to retrieve blocks from. Returns: List of blocks from the specified page.

Input Schema

NameRequiredDescriptionDefault
page_nameYes

Input Schema (JSON Schema)

{ "properties": { "page_name": { "title": "Page Name", "type": "string" } }, "required": [ "page_name" ], "title": "get_page_blocksArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/apw124/logseq-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server