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

# get_view_recent_events

> Get recent live-segment entries for a specific view type, before slower summarization steps.

Get recent entries for the live segment (`temp`) of a view: events as they arrive, before slower summarization steps.

## Parameters

| Parameter    | Required | Type                    | Description                                                                                               |
| ------------ | -------- | ----------------------- | --------------------------------------------------------------------------------------------------------- |
| `patient_id` | Yes      | `string`                | Patient user ID                                                                                           |
| `view_type`  | Yes      | `string`                | View type (e.g., `symptom_snapshot`, `medication_snapshot`)                                               |
| `date_from`  | No       | `string` (ISO 8601)     | Inclusive lower bound on snapshot `created_at`. Resolves to the latest version of the view in the window. |
| `date_to`    | No       | `string` (ISO 8601)     | Inclusive upper bound on snapshot `created_at`.                                                           |
| `limit`      | No       | `integer`               | Maximum number of recent entries to return (default: `50`)                                                |
| `format`     | No       | `"raw"` or `"markdown"` | Output format (default: `raw`). `"pretty"` is accepted as a deprecated alias for `"markdown"`.            |

## Example output

Illustrative:

```json theme={null}
[
  {
    "timestamp": "2026-03-18T08:42:00Z",
    "summary": "Patient reported mild nausea after morning dose."
  }
]
```
