Feature · Open-web automation
Prism Browser lets an agent use a real web browser within limits you set: which hosts it may visit, which actions it may take, and how much page content it may read.
Every page observation is size-limited and wrapped as untrusted input before a model sees it.
Capabilities
01
A browser policy answers two questions before the engine receives anything: where may the browser go, and what may it do there. Hosts, actions, HTTPS and ports are all explicit.
const policy = new BrowserPolicy({
allowedHosts: ['docs.example.com', '*.example.org'],
allowedActions: ['click', 'scroll'],
requireHttps: true,
allowedPorts: [443],
});02
Loopback, private, link-local (including cloud metadata at 169.254.169.254), carrier-grade NAT, multicast and reserved ranges are refused, in IPv4 and IPv6. PHP always refuses them.
03
An observation is framed with a random id per observation, so page text cannot close the wrapper. One larger than the byte limit is refused, never truncated.
04
Every refusal carries a stable code. Branch on the code, never on the message.
05
Each browser session belongs to an owner. An attachment id used with a different owner is refused, so knowing another session’s attachment id is not enough to use it.
06
A toolset gives a model navigate, observe and act tools bound to one owner and one attachment. Actions that change state, such as click and fill, require approval.
How it fits
PHP ships a bundled engine: a Playwright sidecar that listens on loopback only and requires a bearer token. TypeScript and Python ship no engine: you implement the engine interface over your own automation library and wrap it in a guarded browser.
A Harness session can own a PHP attachment; run the browser tools through Harness when approvals must survive across requests. Human+ is for a different job: joining a surface your application controls.
Install
particle-academy/prism-browser PHP
@particle-academy/prism-browser TypeScript
prism-ai-browser Python
Related features
Agents in shared surfaces
Human+
An agent joins a live Fancy surface as a named participant, and confirmation stays with the human.
Durable agent sessions
Agent harness
Durable sessions, threads, modes, approvals and subagents with their own budgets, for agents that outlive a request.
Model Context Protocol
MCP
Discover and call MCP server tools with explicit trust policies, definition pinning and bounded results.