SiYuan icon

SiYuan

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

Block → Prepend

AI-generated

Summary

Prepends Markdown or DOM content as a block at the beginning of a specified SiYuan parent block.

Inputs

  • Parent Block ID (required) — ID of the document or container block that will receive the content.
  • Content (Markdown) (required) — Content to prepend. Defaults to Markdown; set Additional Options → Data Type to DOM (HTML) to send DOM content.
  • Data Type — Content format: Markdown (default) or DOM (HTML).

Output shape

The SiYuan API response data for the prepend request.

The operation changes the parent block by adding content at its beginning. The returned data is passed through without reshaping; if the API returns no data, the node emits {"success":true}.

Links

Discussion