Automations¶
An events source is read on an OpenCode timer automation with a cursor in the automation's state. The manifest's cadence.suggestMinutes is the suggested interval; the provider's own floor, when it states one, is the minimum.
| Source | Method | Provider floor | Suggested | Signals |
|---|---|---|---|---|
metaview.conversations | tools.metaview.events_list | — | 15 min | — |
The recipe¶
- Read
tools.metaview.events_listwith the account and the cursor saved by the previous run. Pass the source'sscope({ "reports": ["<id>"] }) when the person confirmed only some saved reports. - Apply the page's events, then the
removals, then save thecursorit answers in the automation's state. - If
failedis not empty, keep the old cursor: a failed event holds the read back. - Read again on the suggested cadence.
more: truemeans another page is ready now, not that the source is done.
// The automation's state holds one cursor per account and source.
const page = await tools.metaview.events_list({
source: "conversations",
account: "work",
cursor: state.cursor,
})
state.cursor = page.cursor
A cursor is bound to its plugin, source, account and scope. Do not share one between accounts: the plugin refuses it with CURSOR_INVALID. The cursor resumes after the (start, conversation id) pair it holds, so two conversations that share a start are listed one after the other, never skipped.
The page is metadata only. To read a transcript or a summary, the automation uses Metaview's own tools through the agent; the source never carries conversation content.