Inspect reference
inspect_referenceRead colors from a frame's reference image (the one the frame remembers from a comparison, or reference), instead of guessing them from a screenshot: the image's main colors, the exact color at points, and the main colors of areas (or of where an element of the frame is). Coordinates are frame CSS px, as in comparisons.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fileId": "<fileId>",
"frameId": "<frameId>"
},
"name": "inspect_reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | No | Size of the palette. | |
| fileId | Yes | ||
| nodeId | No | Also the main colors of the reference where this element is rendered (id#n: its n-th copy in a template's rows; instanceId>nodeId: an element drawn by an instance). | |
| points | No | [x, y] in frame CSS px: the color of each pixel. | |
| frameId | Yes | ||
| regions | No | Areas in frame CSS px: their main colors (background, then text...). | |
| reference | No | /api/assets/<id> or https URL. Omit to use the frame's reference. |