SiYuan Document Tool icon

SiYuan Document Tool

Use this tool to create, read, list, and manage documents in the SiYuan knowledge base. Use "getContent" to read a document, "create" to write a new one, "listInNotebook" to browse, or "exportMd" for full markdown export.

Get Document Tree

AI-generated

Summary

Fetches the child-document tree nested under a SiYuan document. Provide the document ID; the node returns each child’s ID, title, human-readable path, update time, and nested children, recursing up to five levels.

Inputs

  • Document ID (required) — The unique ID of the document whose child documents to browse.

Output shape

A list of child-document records, each with id, title, hPath, updated, and children fields.

The root document is not included. Recursion stops at five levels; failed directory reads produce an empty children list. The node returns one n8n output item containing this list for each input item.

Links

Discussion