compute_drift
Compare baseline and candidate extractions to detect UI design drift, returning a 0-100 score, verdict, category scores, and changed, added, or removed design tokens.
Instructions
Compare two dembrandt extractions and return a design-drift report: a 0-100 score (0 = identical), a stable/drift verdict, per-category scores, and the list of changed/added/removed tokens (colors, typography, spacing, radius, shadows). Pure and synchronous, no browser. Takes either an inline extraction or the job_id of a completed one. Use it to check whether generated or updated UI has drifted from a brand baseline.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compute_drift"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseline | No | A dembrandt extraction object. Omit it and pass job_id instead to read a completed extraction straight out of the job queue, which avoids sending the whole extraction back through the model. | |
| candidate | No | A dembrandt extraction object. Omit it and pass job_id instead to read a completed extraction straight out of the job queue, which avoids sending the whole extraction back through the model. | |
| baselineJobId | No | job_id of a completed extraction to read instead of passing result inline | |
| failThreshold | No | Score above this yields a 'drift' verdict (default 10) | |
| candidateJobId | No | job_id of a completed extraction to read instead of passing result inline |