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

# workflowActions

## Methods

### cancel()

```typescript
cancel(runId: string): Promise<void>
```

Cancel a workflow action run.

#### Parameters

<ResponseField name={"runId"} type={"string"} required>
  Action run id to cancel.
</ResponseField>

#### Returns

`Promise<void>`

### execute()

```typescript
execute(body: object, options?: { idempotencyKey: string }): AgentRunStream
```

Execute a workflow action and stream run events.

#### Parameters

<ResponseField name={"body"} type={"object"} required>
  Action body (`organizationId`, `sessionId`, `workflowAction`, optional `previousOutputs`).
</ResponseField>

<ResponseField name={"options"} type={"{ idempotencyKey: string }"} />

#### Returns

`AgentRunStream`

A stream of run events for the action execution.
