Skip to content

How to heal a broken seam

heal belongs to Unsurf’s reusable-seam path. It is what keeps worker useful after a website changes.

worker fails
↓
heal retries
↓
re-scout if needed
↓
return a repaired path
Terminal window
curl -X POST https://unsurf-api.coey.dev/tools/heal \
-H "Content-Type: application/json" \
-d '{
"pathId": "path_lx1a_q7z2",
"error": "GET /api/v1/users returned 404"
}'
{
"healed": true,
"newPathId": "path_mx2b_r8a1"
}
  1. retries the original replay path,
  2. marks it broken if the failure persists,
  3. scouts the original site/task again,
  4. verifies the replacement,
  5. returns the new path.
SituationUse
A direct replay path driftedheal
The browser task itself changed visuallyupdate the browser plan or loop spec
The user-session task is still browser-nativestay on local browser MCP