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

Overview

This node operation reads the full Markdown content of a document in the SiYuan knowledge base by its unique document ID. It is useful for retrieving the complete textual content of a specific document for viewing, processing, or exporting purposes.

Use Case Examples

  1. Retrieve the Markdown content of a project documentation stored in SiYuan by providing its document ID.
  2. Fetch the content of a meeting notes document to display or analyze it in another workflow.

Properties

Name Meaning
Document ID The unique ID of the document to read the content from.

Output

JSON

  • content - The full Markdown content of the specified document.

Dependencies

  • SiYuan API credentials (API URL and API token) required for authentication.

Troubleshooting

  • Common issues include providing an invalid or non-existent Document ID, which will result in an error when attempting to fetch content.
  • Errors related to authentication failures if the API credentials are incorrect or expired.
  • Network connectivity issues preventing access to the SiYuan API endpoint.

Links

Discussion