/canvai-watch
Enter watch mode for rapid visual iteration. The agent listens for annotations from the canvas and applies them automatically.
Prerequisites
The dev server must be running (/canvai-dev or npx canvai dev).
Steps
- •
Check for pending annotations first: Call
get_pending_annotations. Process any that are waiting before entering the loop. - •
Confirm: "Watching for annotations. Send any message to exit."
- •
Enter the watch loop: Call
watch_annotations. This blocks until the designer submits an annotation from the canvas. - •
When an annotation arrives:
- •Read the
comment,componentName,selector, andcomputedStyles - •Edit the component file to apply the requested change
- •Call
resolve_annotationwith the annotationid - •Call
watch_annotationsagain — back to waiting
- •Read the
- •
Exit: The designer sends any message to break out of watch mode and return to normal chat.