add_view
Creates a table, kanban, or gallery view in a database, with optional filters, sorts, and grouping to organize records.
Instructions
Add a new table, kanban, or gallery view to a 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>",
"type": "<type>",
"name": "<name>"
},
"name": "add_view"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| avId | Yes | Database ID | |
| name | Yes | View name | |
| type | Yes | View type | |
| sorts | No | Raw SiYuan view sorts | |
| filters | No | Raw SiYuan view filters | |
| groupByFieldId | No | Field ID to group by, typically for kanban |