SiYuan icon

SiYuan

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

Tag → List All

AI-generated

Overview

This node interacts with the SiYuan API to manage tags on blocks within the SiYuan workspace. Specifically, for the 'Tag' resource with the 'List All' operation, it retrieves a list of all tags available in the workspace. This is useful for workflows that need to organize, filter, or analyze content based on tags, such as automating content categorization or generating tag-based reports.

Use Case Examples

  1. Listing all tags to display in a dashboard for content management.
  2. Retrieving tags to filter blocks for further processing or automation.

Output

JSON

  • id - Unique identifier of the tag
  • name - Name of the tag
  • color - Color associated with the tag
  • count - Number of blocks associated with the tag

Dependencies

  • SiYuan API URL and API Token credentials required for authentication.

Troubleshooting

  • Ensure that the SiYuan API URL and Token credentials are correctly set; missing or invalid credentials will cause authentication errors.
  • If the node throws an 'Unsupported resource' error, verify that the resource parameter is set to 'Tag'.
  • Network issues or incorrect API endpoint may cause request failures; verify connectivity and API URL.

Links

Discussion