- 01 · You
Click once
In a browser the agent can watch.
- 02 · REP
Capture it
Requests, answers, scripts and console, for that action only.
- 03 · Your agent
Explain it
Which script sent what, and what it did with the answer.
Open Chrome with remote debugging
Use a separate profile folder, so your everyday logins stay out of it:
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --remote-debugging-port=9222 --user-data-dir="$HOME/rep-chrome"& "$env:ProgramFiles\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="$env:TEMP\rep-chrome"google-chrome --remote-debugging-port=9222 --user-data-dir="$HOME/rep-chrome"Open the page you want to study in that window. The debugging port only listens on your own computer.
Ask your agent to watch one action
›Use REP with my Chrome on debugging port 9222. Watch the open tab while I click Export once. Tell me which request it sends, what comes back, and which script turns the answer into the download.
The agent attaches to the tab, records while you click, and stops. It gets the request with its headers and body, the response, and the loaded scripts with their source, so it can point at the function that handled the answer.
Read the request and the script
What you get back reads like this (a made-up page, the shape is what matters):
POST /api/export
content-type: application/json
{"format":"csv","ids":[1,2,3]}
200 text/csv · 214 bytes
content-disposition: attachment; filename="export.csv"async function exportNotes(ids) {
const res = await fetch('/api/export', { method: 'POST', body: JSON.stringify({ format: 'csv', ids }) });
const blob = await res.blob();
saveAs(blob, 'export.csv');
}Compare two runs
Captures can be saved and compared. Ask for a second capture after changing one thing (a setting, a logged-in user, a new version of the site) and ask what changed between them. That is how you find which request carries a feature flag or a price.
Watch only pages and accounts you are allowed to test. Captures can hold cookies and personal data: keep them private and delete them when you are done.