SiYuan icon

SiYuan

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

Search → Search by Attribute

AI-generated

Summary

Search for blocks in SiYuan that have a specific attribute name whose value partially matches the provided string.

Inputs

  • Attribute Name (required) — The name of the attribute to search for (e.g., custom-status, memo, alias).
  • Attribute Value (required) — The attribute value to match, supporting partial matches.

Output shape

a list of blocks matching the attribute name and value criteria, ordered by the last updated timestamp descending

Each returned block includes all its data fields from the SiYuan database. The search performs a SQL query joining blocks and attributes to filter on attribute name equality and value LIKE pattern with the given partial match value.

Examples

Example 1: Find all blocks tagged with a custom status of 'in-progress'

Set Attribute Name to 'custom-status' and Attribute Value to 'in-progress'.

Links

Discussion