The Context Engine Studio is now open source.  View on GitHub →
Clinia
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

ArgumentTypeRequiredDescription
patient_idstringYesThe patient's patientId. See Shared arguments.
pathstringYesA path relative to the patient, such as / or /conditions/active. See Paths.
session_idstringNoA 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.

Input
{ "patient_id": "abc", "path": "/conditions/active" }
Output
# /conditions/active

📁 type_2_diabetes_mellitus — active since 2016
📁 hypertension — active since 2019
📁 chronic_kidney_disease — stage 3b, active

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

On this page