Tide · API
tide.fire
tide.fire fires one reflex manually: it ingests a fact of kind manual that targets the reflex, carries the caller as by and the input as payload, and returns that fact. The reflex runs on the next advance.
{
id: 'door.list',
intent: 'Mail the door the list for a night, when somebody asks for it.',
on: { manual: {} },
effect: {
name: 'mail.send',
input: {
to: 'the door',
night: { $ref: '$.fact.payload.night' },
askedBy: { $ref: '$.fact.by' },
},
},
}await tide.fire('door.list', { now, input: { night: '2026-10-24' }, by: 'ruth' }){
fact: {
kind: 'manual',
payload: { night: '2026-10-24' },
target: 'door.list',
by: 'ruth',
at: 1792854000000,
depth: 0,
},
mailed: [
{ to: 'the door', night: '2026-10-24', askedBy: 'ruth' },
],
}Runs in this page on the installed package. The input and the expected output are defined by the example.