> ## 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.

# read_memories

> Read memories for a patient, optionally searching by query.

Read memories for a patient. Optionally search by query, or list all up to limit.

## Parameters

| Parameter    | Required | Type      | Description                                           |
| ------------ | -------- | --------- | ----------------------------------------------------- |
| `patient_id` | Yes      | `string`  | Patient user ID                                       |
| `query`      | No       | `string`  | Optional search query; if omitted, list all memories  |
| `limit`      | No       | `integer` | Maximum number of memories to return (default: `100`) |

<Note>
  `read_memories` is not versioned and ignores the `date_from` / `date_to`
  window arguments accepted by other tools.
</Note>

## Example output

Illustrative:

```json theme={null}
[
  {
    "content": "Patient prefers scheduling visits in the morning.",
    "category": "preferences"
  },
  {
    "content": "Discussed GI side effects with care team last week.",
    "category": "symptom_context"
  }
]
```
