create_database
Create a new Attribute View database in SiYuan. Embed the table inside an existing document with parentDocId, or create a standalone database page at the notebook root.
Instructions
Create a new Attribute View database. With parentDocId: embeds the database TABLE INSIDE that document (appears as content in the page). Without parentDocId: creates a standalone DB page at notebook root. Do NOT include "block" in fields — the primary Name field is auto-created.
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": {
"notebookId": "<notebookId>",
"name": "<name>"
},
"name": "create_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Database name (also the page title) | |
| fields | No | Additional fields (optional). Primary "Name" field is always auto-created. | |
| notebookId | Yes | Notebook ID | |
| parentDocId | No | Document ID to embed the database INTO (the DB table appears as content inside this page) |