SiYuan icon

SiYuan

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

Tag → Rename

AI-generated

Summary

Rename a tag throughout the SiYuan workspace by replacing its exact name on every matching block. Provide the current and new tag names; the operation reports how many blocks it updated.

Inputs

  • Current Tag Name (required) — The exact current tag name to replace.
  • New Tag Name (required) — The name to assign to matching tags.

Output shape

A single record containing oldTag, newTag, and blocksUpdated.

blocksUpdated counts blocks whose tag list contained the current name and was updated. If the new name already exists on a matching block, duplicate tags are collapsed.

Links

Discussion