Manage Template Records
template_recordsManage owner-curated record collections shared across all panes of a template. Use list, get, upsert, update, delete, or delete_collection operations on collections declared in the template schema.
Instructions
CRUD for TEMPLATE-level record collections — owner-curated content anchored to a template head and visible to every pane derived from any of its versions (vs per-pane records, which are the discrete record tools). ONE tool with an action enum: list | get | upsert | update | delete | delete_collection. The template version must declare the collection via template_record_schema (set it with the template tool first).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Record body. Required for upsert/update. | |
| limit | No | List page size. | |
| since | No | List cursor (and poll handle). | |
| action | Yes | Operation on a TEMPLATE-level (owner-curated, shared across every pane of the template) record collection. Same grammar as the per-pane record tools but scoped to a template head. The template version must declare the collection via template_record_schema (set it with the `template` tool). | |
| confirm | No | Required (true) for delete_collection (drops the whole collection). | |
| if_match | No | Optimistic-lock version for update/delete. | |
| collection | Yes | The template-level collection name. | |
| record_key | No | Record key. Required for get/update/delete; optional for upsert. | |
| template_id | Yes | Template id or slug. | |
| include_tombstones | No | Include soft-deleted rows in list. |