Add Column to SiYuan Database
av_addColumnAdd columns to SiYuan database attribute views by specifying the view ID, column name, and type. Supports various column types and optional select options for dropdowns.
Instructions
Add a column to an existing database
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": {
"avID": "<avID>",
"name": "<name>",
"type": "<type>"
},
"name": "av_addColumn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| avID | Yes | Attribute View ID | |
| name | Yes | Column name | |
| type | Yes | Column type | |
| options | No | Options for select/mSelect columns | |
| previousKeyID | No | Insert after this column keyID (empty for append) |