Actions71
- Asset Actions
- Attribute Actions
- Block Actions
- Database Actions
- Document Actions
- Markdown Table Actions
- Notebook Actions
- Search Actions
- System Actions
- Tag Actions
Block → Fold
AI-generatedOverview
This node operation folds a specified block within a SiYuan document. Folding a block typically means collapsing or hiding its content to improve document readability and organization. This operation is useful in scenarios where users want to manage the visibility of content blocks in their notes or documents, such as collapsing detailed sections to focus on higher-level content.
Use Case Examples
- A user wants to collapse a detailed paragraph or section in a note to reduce clutter and focus on the main points.
- An automated workflow folds blocks after processing or reviewing content to keep the document tidy.
Properties
| Name | Meaning |
|---|---|
| Block ID | The unique ID of the block to be folded. This is required to identify which block in the document should be collapsed. |
Output
JSON
success- Indicates whether the fold operation was successful.
Dependencies
- Requires SiYuan API URL and API token credentials for authentication.
Troubleshooting
- If the API URL or token is missing or invalid, the node will throw an error indicating that these credentials are required.
- If the block ID is incorrect or the block does not exist, the fold operation may fail or return an error from the SiYuan API.
- Unsupported resource or operation errors occur if the resource is not 'block' or the operation is not 'fold'. Ensure correct parameters are set.