add_database_column
Add a new column to a SiYuan database by specifying field name, type (text, number, date, etc.), and optional icon. Enables dynamic schema extension for structured data.
Instructions
添加数据库字段
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": "add_database_column"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| avID | Yes | 思源块、文档、笔记本或数据库 ID | |
| icon | No | 字段图标 | |
| name | Yes | 字段名称 | |
| type | Yes | 字段类型 | |
| previousKeyID | No | 思源块、文档、笔记本或数据库 ID |