Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man dom-change-diff

/dom-change-diff

agentutility / browser-workflow / dom-change-diff
PRICE / CALL
$0.01
USDC · base mainnet · scheme: exact
METHOD
POST
CATEGORY
uncategorized
STATUS
live
NAME
dom-change-diff dom diff for two html snapshots of the same page or component, built for browser-automation scripts whose css selectors quietly break aft…
SYNOPSIS
POST https://x402.agentutility.ai/dom-change-diff
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

DOM diff for two HTML snapshots of the same page or component, built for browser-automation scripts whose CSS selectors quietly break after a site redesign. Send before_html and after_html plus the selectors your workflow watches, and get back per-selector added/removed/moved/attribute-changed status, stale DOM detection for targets that vanished, and selector stability hints: replacement selectors built from an element's id, data-testid, or aria-label so a broken automation step can self-repair. Use it as a browser workflow repair tool, a selector-stability checker, or a pre-flight check before re-running a scraping or RPA script against a site that may have changed.

INPUTrequest schema
propertytypedescriptionreq?
before_htmlstringThe earlier/reference HTML snapshot of the page or component.required
after_htmlstringThe current HTML snapshot to compare against before_html.required
selectorsarrayOptional list of CSS selectors your automation depends on (e.g. '#login-btn', '.price'). Up to 50.optional
OUTPUTresponse shape
fieldtypedescription
before_element_countstring
after_element_countstring
added_elementsstring
removed_elementsstring
selector_changesstring
has_changesstring
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/dom-change-diff \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the dom-change-diff tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
browser-workflowdomchangediffdom-change-diff
methods
POST
cluster
browserworkflow
price
$0.01 USDC per call
ADJACENTother endpoints in browserworkflow
endpointdescriptionprice
browser-flow-digestBrowser flow digest API that compresses a recorded trajectory or trace into reusable workflow memory: an ordered step list, the precondit…$0.02
form-fill-planForm fill plan API that turns an HTML form plus a plain-language goal into an ordered browser form automation plan: selector, field label…$0.02
SEE ALSO
agentutility · browserworkflow · x402 · mcp · llms.txt · registry.json · bazaar.x402.org