SiYuan Block Tool icon

SiYuan Block Tool

Use this tool to create, read, update, move, and delete content blocks within SiYuan documents. Use "append" to add content to a document, "getContentMd" to read a block, or "update" to modify existing content.

Get Content (Markdown)

AI-generated

Summary

Fetches the Markdown content of a specified SiYuan block by its ID. Uses the configured SiYuan API credentials and returns the block’s kramdown content as the result for each input item.

Inputs

  • Block ID (required) — The unique ID of the SiYuan block whose content to retrieve.

Output shape

One result per input item, containing the block’s Markdown content.

The operation reads the kramdown field returned by SiYuan’s block API. If the API returns no result, the node emits { "success": true }; with Continue On Fail enabled, errors are returned as { "error": "..." }.

Links

Discussion