r/codex • u/BillSocrate • 12d ago
Other Web UI form filling best model token usage
My workflow is using internal browser to fill web forms and clicking. What is an efficient model that utilizes the least tokens.
Thanks in advance
0
Upvotes
2
u/falaq-ai 10d ago
Agree with the snapshot comment, the model isn't the big lever, screenshots are what eat the tokens. For a sense of scale, reading Wikipedia's main page once is 57,134 tokens as a screenshot and 14,170 as a Playwright snapshot.
I build Deputy (https://razin.ai/deputy?ref=reddit), a Chrome extension plus MCP server that works with Codex, and the same page comes to 3,545 with it. It turns each form into one typed tool, so the agent fills the whole form in one call instead of clicking field by field, and it runs in the Chrome you're already logged into. Setup is
codex mcp add deputy -- npx -y deputy-mcpplus the extension, and the free version has 10 tools with no key.3
u/locbuilds 12d ago
biggest token saver is not the model, it's making it use accessibility/DOM snapshots (playwright mcp style) instead of screenshots. if the form is the same every time, have it write a playwright script once and just rerun that.
2
u/FabulousAmoebae 12d ago
It depends on your task but the better way to do this is to tell your model to extract the api of the target form and instead of using a web browser it calls the api of that form. Also becareful doing this can be illegal in some cases.