SiYuan icon

SiYuan

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

Search → Get Recent Changes

AI-generated

Summary

Retrieve SiYuan documents modified most recently by querying blocks of document type, ordered by modification time descending. Optionally restrict results to documents modified since a timestamp and set a maximum result count.

Inputs

  • Limit — Maximum number of results; defaults to 50 and must be at least 1.
  • Since — Optional timestamp in YYYYMMDDHHmmss format. When provided, includes documents whose updated timestamp is greater than or equal to this value.

Output shape

A list of matching SiYuan document block records.

Each record is returned from the SiYuan SQL query (SELECT * FROM blocks), so its fields follow the blocks table schema. Results are ordered by updated descending and capped by Limit.

Links

Discussion