Run AI diagnosis
diagnose_annotationRun the AI Diagnosis Engine on an annotation: it analyses the captured page, element, DOM, and runtime errors to produce ranked root causes, a confidence score, a suggested fix, and the likely source files. Calls an AI provider (uses tokens / may cost money) and stores the result. Requires AI + diagnosis enabled by the workspace admin and a key set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Override the model. Optional. | |
| provider | No | Override the AI provider. Defaults to the workspace default. | |
| annotation_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| model | No | ||
| status | No | ||
| summary | No | ||
| provider | No | ||
| confidence | No | ||
| created_at | No | ||
| updated_at | No | ||
| root_causes | No | ||
| annotation_id | No | ||
| suggested_fix | No | ||
| suggested_files | No |