visual-intent-layer

v0.4.0
io.github.willa-code/visual-intent-layer Checked 3 days ago Published 2 months ago

Point 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…

ParameterTypeDescription
kind *string
capabilitiesobjectWhat this host can do. Omit to be treated as a browsing host with polling updates.
pathstringFilesystem path to the saved HTML artifact.
sourceRootstringFilesystem 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.
urlstringLocalhost URL of the running React/Vite application.
waitMsnumberHow 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…

ParameterTypeDescription
agentIdstringIdentifies the implementing agent.
cursorstringThe 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.
sessionIdstringThe 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.

ParameterTypeDescription
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.

ParameterTypeDescription
agentId *string
envelopeId *string
annotationIdstringAcknowledge only this Annotation when given.