upsert_rows
Batch insert or update rows in a JSONL table by primary key, returning inserted, updated, and unchanged counts. Use dry-run to preview changes without writing files.
Instructions
按指定主键批量新增或更新,走与 HTTP 相同的 Store 并发保护。返回回执:inserted / updated / unchanged 计数与各自的主键值列表。dry_run=true 只算回执不落盘。
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": {
"library": "<library>",
"table": "<table>",
"key": "<key>",
"rows": "<rows>"
},
"name": "upsert_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| rows | Yes | ||
| table | Yes | ||
| dry_run | No | 只返回将发生的变更,不写文件 | |
| library | Yes |