SiYuan icon

SiYuan

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

Tag → Remove

AI-generated

Summary

Remove a named tag from a SiYuan block while preserving its other tags. Provide the block ID and tag name without the # symbol; the operation reads the block’s current tags, removes matching entries, and writes the remaining list back.

Inputs

  • Block ID (required) — The unique ID of the block to update.
  • Tag (required) — The tag name to remove, without the # symbol.

Output shape

A single record

Returns { blockId, tags }, where tags is the block’s remaining tag names as an array. If the specified tag was not present, the existing tags are still written back and returned unchanged.

Links

Discussion