anchor_probe
Evaluate multiple OpenCV anchors against one window frame, returning matched, ambiguous, missing or unreadable states plus a hash, so GUI running-vs-idle checks need just one capture.
Instructions
Judge several OpenCV template anchors against ONE window frame. Read-only, no clicking. Returns matched / ambiguous / missing / unreadable, a per-anchor state map and the frame sha256, so a running-vs-idle decision comes from one capture instead of N racing ones. A minimized window returns WINDOW_MINIMIZED instead of an all-missing verdict.
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": {
"hwnd": "<hwnd>",
"names": "<names>"
},
"name": "anchor_probe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | ||
| hwnd | Yes | ||
| names | Yes | anchor names stored in the app profile | |
| store | No | anchor store root (default ~/.codex-home/anchors) | |
| roi_pad | No | search only the stored rect plus this pad; ~20x faster, assumes the control has not moved | |
| threshold | No | ||
| color_theme | No | ||
| scale_product | No | render scale of the capture; omit to infer from window DPI |