Bulk Update
bulk_updateUpdates many library items at once: sets the status, the read state, pins or unpins, adds or removes tags, or moves the matched items to the Trash. Filters: status group (saved/extracting/failed), saved date range (since/until in UTC; date-only and zoneless values are UTC, pass offset like -08:00 for local days), domain, pinned, type (note/url), read state and tags. At least one filter is required. Defaults to dry_run=true, which reports what would change without touching anything; pass dry_run=false to apply. At most 200 items are updated per call; the result reports total_matched, affected, truncated and the item_ids, so a bulk trash can be undone with restore_item. Use list_items to see what a filter matches before applying.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "bulk_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | Pin (true) or unpin (false) the matched items. | |
| type | No | Only notes or only saved urls. | |
| since | No | ISO datetime (inclusive): only items saved at/after it. saved_at is UTC; date-only (YYYY-MM-DD) and zoneless values are read as UTC (date-only starts at 00:00:00 UTC). Callers should pass an offset (e.g. -08:00) for local days. | |
| trash | No | Move the matched items to the Trash instead of changing them. They stay restorable for 30 days; the result carries their ids. | |
| until | No | ISO datetime (inclusive): only items saved at/before it. saved_at is UTC; date-only (YYYY-MM-DD) and zoneless values are read as UTC (date-only covers through 23:59:59 UTC). Callers should pass an offset (e.g. -08:00) for local days. | |
| action | No | Change the read state of the matched items: 'mark_read', 'mark_unread' or 'archive'. An archived item stays archived. | |
| domain | No | Only items from this host (e.g. example.com). | |
| pinned | No | Only pinned (true) or only unpinned (false). | |
| status | No | Only items in this status group: 'saved' (extracted), 'extracting' (queued) or 'failed'. | |
| dry_run | No | Preview only (true) or apply (false). | |
| add_tags | No | Tags to add (at most 20). | |
| tags_all | No | Only items carrying ALL of these tags. Child tags linked via parent count ('/' is disallowed in tag names). | |
| tags_any | No | Only items carrying ANY of these tags. Child tags linked via parent count ('/' is disallowed in tag names). | |
| untagged | No | Only items without any tag. | |
| tags_none | No | Exclude items carrying any of these tags. Child tags linked via parent count ('/' is disallowed in tag names). | |
| read_state | No | Only items in this read state. | |
| set_status | No | Set the status of the matched items: 'saved' (extracted), 'extracting' (queued again - it does not re-run extraction) or 'failed'. | |
| remove_tags | No | Tags to remove (at most 20). |