Create SiYuan Database
av_createAttributeViewCreate a new database (Attribute View) in a SiYuan document, defining columns and initial rows for structured data management.
Instructions
Create a new database (Attribute View) in a SiYuan document
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"notebook": "<notebook>",
"docID": "<docID>",
"name": "<name>"
},
"name": "av_createAttributeView"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Database name | |
| rows | No | Initial row data, where keys are column names | |
| docID | Yes | Document ID to insert the database into | |
| columns | No | Additional columns besides the block column | |
| notebook | Yes | Notebook ID | |
| blockColumnName | No | Name of the primary block column (default: 名称) |