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 Content

AI-generated

Summary

Reads a SiYuan document’s full Markdown content using its document ID and returns that content in the output item.

Inputs

  • Document ID (required) — The unique ID of the SiYuan document to read.

Output shape

One output item per input item, containing the document’s Markdown content.

The operation exports Markdown internally and returns only the export’s content field. If the result is null or undefined, the node returns {"success":true}; errors are thrown unless Continue On Fail is enabled, in which case an error field is returned.

Links

Discussion