Logseq MCP Tools

MIT License
  • Apple

get_page_blocks

Extract hierarchical block structures from a specified Logseq page, including parent IDs, indentation levels, and journal-specific details for accurate data organization and analysis.

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 information about their hierarchical structure: - parent: The parent block's ID - level: The indentation level (1 for top-level, 2+ for indented blocks) - left: The block to the left (typically the parent for indented blocks) Blocks from journal pages will have: - "journal?": true - "journalDay": YYYYMMDD - The date in numeric format (e.g., 20250404) Args: page_name (str): The name of the page to retrieve blocks from. Returns: list: A 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" }
ID: 295dxo9rre