Add count scans
add_count_scansAdd scans to a count. Use this to type in numbers a person read out. scans holds 1 to 500 entries of barcode and quantity (a whole number of 1 or more). Each entry is saved as its own scan and added to what is already counted, so a repeated call counts twice. Send one idempotency_key per logical submission (8 to 128 characters) and reuse the same key when you retry that submission after a timeout or error: the retry then saves nothing twice. A new key means new scans. quantity is at most 100000 per scan. Optional list_id is a batch of this count. Without it the scans go to a batch named " – added by assistant", which is created in count mode on the count's sheet and folder and attached to the count when the count has no open batch of that name. The count needs a sheet. Returns batch_id, how many scans were saved, and any skipped. Run compare_count afterwards. An applied count is read-only. Requires the stock plan feature.
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": {
"count_id": "<count_id>",
"scans": "<scans>"
},
"name": "add_count_scans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scans | Yes | ||
| list_id | No | ||
| count_id | Yes | ||
| idempotency_key | No |