# browse_patient

URL: https://docs.clinia.com/api/mcp/tools/browse-patient

> Lists a folder of a patient's virtual file tree, or returns a file's content.

Navigates a patient's [virtual file tree](https://docs.clinia.com/docs/context-assembly/virtual-file-system). A folder returns its entries; a file returns its content in `narrative` form. Start at `/` and drill down.

## Input [#input]

| Argument     | Type   | Required | Description                                                                                                  |
| ------------ | ------ | -------- | ------------------------------------------------------------------------------------------------------------ |
| `patient_id` | string | Yes      | The patient's `patientId`. See [Shared arguments](https://docs.clinia.com/api/mcp/server#shared-arguments).                         |
| `path`       | string | Yes      | A path relative to the patient, such as `/` or `/conditions/active`. See [Paths](https://docs.clinia.com/api/mcp/server#paths).     |
| `session_id` | string | No       | A session to record the call on. See [Record calls on a session](https://docs.clinia.com/api/mcp/server#record-calls-on-a-session). |

## Output [#output]

For a folder, a Markdown listing: a `#` heading with the path, then one line per entry. `📁` marks a folder and `📄` a file. The entry's readable name follows the `·` when its name is an id, and a preview follows the dash when the entry has one.

```json title="Input"
{ "patient_id": "abc", "path": "/conditions/active" }
```

```md title="Output"
# /conditions/active

📁 fct_k3v9q2m7x1c8b5n4z6w0a2d1 · Type 2 diabetes mellitus — status: active | onset: 2016-03-01
📁 fct_p8d4w1n6y3t9s2f7j5g0c8m3 · Hypertension — status: active | onset: 2019-05-12
📁 fct_b6x2r9k4h1v7q3z8n5d0t2w6 · Chronic kidney disease stage 3b — status: active | onset: 2021-09-30
```

For a file, the file's content in `narrative` form. Use [`read_patient`](https://docs.clinia.com/api/mcp/tools/read-patient) to choose its format or cap its length.

For a path that does not exist, the result has `isError: true` and its text is `path not found: {path}`. See [Errors](https://docs.clinia.com/api/mcp/server#errors).
