Option
offer of action
The outside doors the action is offered to.
Value
A list of 'api', 'mcp' and 'cli'. Left out, it is offered to none.
Example
TypeScript
export const sendNote = action('sendNote', {
access: role('staff'),
run: async ({ input }) => ({ ok: input.note.length > 0 }),
offer: ['mcp'],
})