Generalist OS foundation models can achieve high performance on medical benchmarks through prompt engineering, surpassing specialized fine-tuned models.