Browser automation breaks agent tool loops at the latency level, not the code level. Here's how to structure direct HTTP APIs as agent tools (OpenAI, Anthropic, and MCP definitions included) so your tool chain holds in production.