SiYuan icon

SiYuan

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

Block → Fold

AI-generated

Summary

Fold a SiYuan block to hide its children. Provide the block’s ID; the node calls SiYuan’s fold-block API.

Inputs

  • Block ID (required) — The unique ID of the block to fold.

Output shape

A single result from the SiYuan fold-block API, wrapped as an n8n output item.

The operation does not fetch block content or child blocks. If the API returns no data, the node emits {"success":true}; with Continue On Fail enabled, errors are returned as an error object.

Links

Discussion