Agents use some interfaces, too.

Your API, your MCP server and your CLI have a second kind of user: an agent that reads text, not pixels. Point the same file at that surface and five trials show whether it gets through. It is a capability test, not a usability one, and it never counts with people.

npx ui-tests --actor agent

What it shows

An agent run shows whether an agent can do the thing against a CLI, an MCP server, an API or a website. It is a capability test, not a usability one. It runs the same task five times, reads each end state with the check you wrote, and reports every trial as verified, stopped or unknown, with its time and what stopped it.

The result is pass^k by default: it passes when all five trials verified. Set reliability: 'any' on a task to read pass@k instead, which passes when one did.

What it does not claim

An agent passing says nothing about people. An agent failing on a website is a reason to look at the trace, not a usability finding.

Agent runs are kept apart. They post their own check, ui-tests (agent), which never fails your build, and their report has its own address. They are never counted with a run that has people in it, and a record says which actor made it.

Run it

Set the model with model: { provider, name } in ui-tests.config.ts (its prompt, tools and budgets under agents), point a study at target: { cli }, target: { mcp } or target: { http }, and list actors: ['agent']. The anthropic provider needs ANTHROPIC_API_KEY in the environment; without it the command stops before it makes a run.

Back to getting started