Search by Tag
AI-generatedSummary
Searches SiYuan blocks for a tag by querying the blocks table for matching tag text and sorting results by most recently updated.
Inputs
- Tag (required) — Tag name to search for, without the
#symbol. The node passes it into a SQLLIKEpattern.
Output shape
A list of matching SiYuan block records.
Results come from
SELECT * FROM blocks WHERE ial LIKE '%tag=%<tag>%' ORDER BY updated DESC; matching uses substring search in the block’sialfield, so it may match tag text that contains the supplied value. Each input item produces its corresponding result. With Continue On Fail enabled, errors are returned as an object containing anerrormessage.