{"found":true,"collection":"prompts","library_url":"https://www.grokbotdb.com/library/prm.a17.browser-to-api-reversal","generated":"2026-09-06T05:32:11Z","citation":["Quote the record id and its source_url (or provenance if there is no URL).","Include last_verified or observed_at when present. Do not present an old date as current.","If tier is community and confidence is low, say so. Do not launder it into a fact.","If the database does not hold the answer, say that. Do not invent Grok Bot product claims.","Contradictions are data: when conflicts_with is present, report both records rather than picking a favourite.","Deprecated and removed records stay visible. They are history, not current guidance."],"record":{"id":"prm.a17.browser-to-api-reversal","name":"Reverse a browser workflow into a script","purpose":"Replace a repeated browser workflow with a documented script and a reported fallback.","attach_to":"message","body":"Do [workflow] once in the browser while recording the network requests\nthe page makes. Then write me a script that performs the same job by\ncalling those endpoints directly.\n\nSave the script to /workspace/[project]/. Document which requests it\nuses, what authentication they need, and what will break if the site\nchanges. Run it once and show me that its output matches the browser run.\n\nFrom now on, run the script. Fall back to the browser only if it fails,\nand tell me when that happens.","fill_ins":["[workflow]","[project]"],"manual_ref":"A17","related_patterns":["pat.browser-to-api-reversal","pat.script-not-loop","pat.connection-ladder"],"first_seen":"2026-09-03","last_verified":"2026-09-03"}}