SiYuan icon

SiYuan

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

Tag → Get Tags for Block

AI-generated

Overview

This node operation retrieves all tags associated with a specific block in the SiYuan note-taking system. It is useful for workflows that need to manage or analyze tags linked to content blocks, such as organizing notes, filtering content by tags, or automating tag-based actions. For example, a user can input a block ID to fetch its tags and then use this information to categorize or process the block further.

Use Case Examples

  1. Retrieve tags for a block to display them in a dashboard.
  2. Fetch tags to automate tagging rules or workflows based on block content.

Properties

Name Meaning
Block ID The unique identifier of the block for which tags are to be retrieved.

Output

JSON

  • tags - An array of tags associated with the specified block.

Dependencies

  • Requires SiYuan API URL and API token credentials for authentication.

Troubleshooting

  • Ensure the Block ID is correct and exists in the SiYuan workspace; otherwise, the operation may return an empty list or an error.
  • Verify that the SiYuan API URL and token credentials are correctly configured and valid to avoid authentication errors.
  • If the node throws an 'Unsupported resource' error, confirm that the resource parameter is set to 'tag' and the operation to 'get'.

Discussion