visual-intent-layer
v0.4.0Point at visible targets in an agent-built interface, and deliver grounded Annotations.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
open_visual_review
Open the Visual Direction Loop for an agent-produced web interface and wait for the Builder-Reviewer. Use this when the human’s intent is lossy in words alone: they name a visible thing by location ("that button", "the header", "below the form"), they compare visible things ("align these", "same size as that", "more space here"), a prose-only correction already missed its target once, or they want to verify a visual result rather than read a code diff. Pointing is the gesture: pointing at elements, dragging across exact words, boxing an area, and sending grounded Annotations. Stay in plain c…
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
capabilities | object | What this host can do. Omit to be treated as a browsing host with polling updates. |
path | string | Filesystem path to the saved HTML artifact. |
sourceRoot | string | Filesystem path to the application source root, so its revision can be derived from files without a build step. Omit to derive the revision from the served document instead. |
url | string | Localhost URL of the running React/Vite application. |
waitMs | number | How long to hold the call for the human, in milliseconds. Omit for the default window. |
check_in
Check in between your own steps to read new direction. Returns everything that arrived since your last check-in: newly delivered Annotations with their delivery intent, a Replacement that replaced something, a pending stop request, and the current state of everything you were given before. This is the Check-In convention: the Builder-Reviewer can amend or interrupt work while you are busy, and it is seen here rather than mid-step. Call it without an envelopeId; there is no push channel and no wake mechanism. It also records that you checked in, which is what lets the surface say when the agent…
| Parameter | Type | Description |
|---|---|---|
agentId | string | Identifies the implementing agent. |
cursor | string | The cursor returned by your previous check-in. Omit to read everything not yet collected. A cursor this build does not recognise reads everything rather than less, so direction is never dropped. |
sessionId | string | The session to check in with. Omit to check the most recently opened session. |
get_intent_status
Read one delivered batch: each Annotation with its own identity, target resolution (matched, recovered, ambiguous with candidates, or deleted), whether it was written before the revision now on screen, and the agent position. Resolution never auto-selects a guess and acknowledgement never counts as verification.
| Parameter | Type | Description |
|---|---|---|
envelopeId * | string |
acknowledge_intent
Acknowledge receipt of a batch or of one Annotation as the implementing agent. Acknowledgement is visible to the Builder-Reviewer but never completes the intent and never counts as verification.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | |
envelopeId * | string | |
annotationId | string | Acknowledge only this Annotation when given. |