Logseq MCP Tools

MIT License
  • Apple

get_block

Retrieve a specific block from the Logseq graph by its ID, including hierarchical details like parent ID, indentation level, and journal day if applicable.

Instructions

Gets a specific block from the Logseq graph by its ID. The returned block contains information about its 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) If the block is from a journal page, it will include: - "journal?": true - "journalDay": YYYYMMDD - Date in numeric format Args: block_id (str): The ID of the block to retrieve. Returns: dict: Information about the requested block.

Input Schema

NameRequiredDescriptionDefault
block_idYes

Input Schema (JSON Schema)

{ "properties": { "block_id": { "title": "Block Id", "type": "string" } }, "required": [ "block_id" ], "title": "get_blockArguments", "type": "object" }
ID: 295dxo9rre