Skip to main content

Using Claude Code, Cursor, or another coding agent? Paste this into your prompt to run cross-browser and real-device tests, debug sessions, and wire up CI on the TestMu AI cloud:
Objectives can have the agent make an API call directly, not just observe the requests a page makes. This is useful for seeding data before a flow, hitting a backend to set up state, or checking a service, then asserting on or reusing the response.

Making a call

Phrase an explicit HTTP request and name its response with “save the response as …”:
A pasted curl works too and is kept exactly as written: method, headers, body, and auth:

Using the response

Once you’ve saved a response under a name, reference it elsewhere in the objective: Assert on it, or feed it into later actions. API calls and browser actions mix freely in one objective:

Tokens and secrets

Put any API token or credential in a variable marked secret: true (see Variables and Context) so it is masked in logs and never stored in plain text:

Make a call vs. observe page traffic

These are two different things:
  • Make a call (this page): you tell the agent to send a request: seed a record, call a backend, set up state.
  • Network assertions: observe the requests the page itself makes during a UI flow (status codes, bodies, timing).
They compose: seed state with a direct call, drive the UI, then assert on the page’s own network traffic.