SiYuan icon

SiYuan

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

Database → Get Schema

AI-generated

Summary

Fetches the column definitions for a SiYuan database (AttributeView), without returning its rows. Use the database’s AV ID, which is different from the ID of the block that hosts it; find AV IDs with the List operation.

Inputs

  • AV ID (required) — The AttributeView ID (data-av-id) of the database, not its hosting block ID.

Output shape

A single record containing the database ID, name, view ID, view type, and columns.

Each column includes its ID, name, type, icon, hidden status, and description. The operation fetches the first rendered database page to obtain the schema; it does not return rows.

Links

Discussion