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. A folder returns its entries; a file returns its content in compact form. Start at / and drill down.
Input
| Argument | Type | Required | Description |
|---|---|---|---|
patient_id | string | Yes | The patient's patientId. See Shared arguments. |
path | string | Yes | A path relative to the patient, such as / or /conditions/active. See Paths. |
session_id | string | No | A session to record the call on. See Record calls on a session. |
Output
For a folder, a Markdown listing: a # heading with the path, then one line per entry. 📁 marks a folder and 📄 a file, and a preview follows the dash when the entry has one.
{ "patient_id": "abc", "path": "/conditions/active" }# /conditions/active
📁 type_2_diabetes_mellitus — active since 2016
📁 hypertension — active since 2019
📁 chronic_kidney_disease — stage 3b, activeFor a file, the file's content. Use read_patient to choose its format or cap its length.
For a path that does not exist, Path not found: {path}. See Errors.