> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Send session events

> Sends one or more provider-native session events in order.

`anthropic.sendSessionEvents` sends one or more provider-native session events in order.

## Example

```ts automations/anthropic-send-session-events.automation.ts theme={null}
import { automation, onInvocation, withPrerequisites } from "automate.ax"
import { anthropic } from "automate.ax/anthropic"

export default automation("Send session events", () => {
  withPrerequisites(onInvocation(), () => {
    anthropic.sendSessionEvents({
      sessionId: "session-id",
      events: [
        {
          type: "user.message",
          content: [{ type: "text", text: "Continue." }],
        },
      ],
    })
  })
})
```

## Inputs

Requires `sessionId` and 1–50 events. Supported hosted events include messages, outcome definitions, confirmations, custom-tool results, interrupts, and valid message-plus-system pairs. Inputs use public camelCase names and accept signals.

## Output and behavior

Returns the accepted events. Sending is not automatically replayed.

Anthropic requests time out before the action lease and provider mutations are not retried after an uncertain response unless stated otherwise.
