Get AI-ready patient context
get_patient_contextRead-onlyIdempotent
Build an AI-ready context for one patient: the parts of the record that matter for question or task,
within budget_tokens, each item labelled with its source and provenance. This is the recommended way to give
a model a patient's record. needs narrows the sections (for example ["conditions", "medications", "labs"]).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | ||
| needs | No | ||
| format | No | text | |
| question | No | ||
| patient_id | Yes | ||
| window_days | No | ||
| budget_tokens | No |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||