SiYuan icon

SiYuan

Manage SiYuan notebooks, documents, blocks, attributes, and more. Designed for AI agent workflows.

Block → Get Content (Markdown)

AI-generated

Summary

Fetches a SiYuan block’s Markdown content using its block ID and returns it as a plain string in the result object.

Inputs

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

Output shape

A single record with the block ID and its Markdown content: {"id":"...","content":"..."}.

If the returned content is null or undefined, content is an empty string. The operation reads the block through SiYuan’s Kramdown endpoint; it does not modify the block.

Links

Discussion