SiYuan icon

SiYuan

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

Tag → Remove

AI-generated

Overview

This node operation removes a specified tag from a block within the SiYuan note-taking system. It is useful for managing and organizing content by dynamically updating tags associated with blocks, such as removing outdated or incorrect tags from notes or documents.

Use Case Examples

  1. Removing a tag named 'urgent' from a specific block identified by its unique Block ID to update task status.
  2. Cleaning up tags on blocks by removing deprecated tags to maintain organized and relevant metadata.

Properties

Name Meaning
Block ID The unique ID of the block from which the tag will be removed.
Tag The name of the tag to be removed (without the # symbol).

Output

JSON

  • success - Indicates whether the tag removal operation was successful.

Dependencies

  • Requires an API URL and API token credential for authenticating with the SiYuan API.

Troubleshooting

  • Ensure that the Block ID provided is correct and exists in the SiYuan workspace; otherwise, the operation will fail.
  • Verify that the tag name is correctly specified without the '#' symbol to avoid errors.
  • Check that the API URL and token credentials are valid and have sufficient permissions to modify tags on blocks.
  • Common error messages include missing credentials, unsupported resource or operation, and invalid block or tag identifiers. Resolving these involves verifying input parameters and credentials.

Discussion