update_rows
Update database rows by ID or matching criteria, editing frontmatter properties and body content while enforcing valid column IDs, option values, and single-row safeguards.
Instructions
Update rows by ID (file path) or matching criteria. Can update frontmatter properties and content. Failsafes: update keys must be column IDs (not names) and select/status values must be valid options; a "where" that matches several rows is blocked unless allowMultiple is true — prefer ids for single-row changes (a status "where" can move multiple kanban cards at once); title renames must target exactly one row.
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": {
"workspace": "<workspace>",
"databasePath": "<databasePath>",
"updates": "<updates>"
},
"name": "update_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Row IDs (file paths) to update — the precise way to target rows. Preferred over "where". | |
| where | No | Criteria to match rows for update (e.g., {"status": "Todo"}), keyed by column ID. Matching more than one row is blocked unless allowMultiple is true. | |
| updates | Yes | Properties to update, keyed by column ID. Use "title" to rename (single row only), "_content" to update body. Select/status values must match the column's options exactly. | |
| workspace | Yes | Workspace path or name | |
| databasePath | Yes | Path to the database folder | |
| allowMultiple | No | Explicitly allow this update to change MORE than one row at once (default false — multi-row matches are blocked with a list of what matched) |