1
Detect AIP
Check, in order:
GET /.well-known/agent-interface: JSON withprotocol: "AIP"and apages[]list.<link rel="agent-interface" href="...">in the page<head>.GET /sitemap.toonor/sitemap.json.
2
Get a session token from the human
Ask the human to open the page and copy the token from its agent instructions panel. Don’t mint your own with
POST /__aim/session when a live tab is involved; it won’t be bound to that tab.3
Read the manifest
state_scope is session and browser_connected is true.4
Invoke one action
input_schema exactly. Don’t wrap input in an extra object.5
Verify
Re-read the manifest and confirm the state changed as intended. Don’t trust a
200 alone.Rules
- Only invoke actions the human asked for. Confirm before
consequential: trueactions. - Read fresh state before each decision when acting on several items.
- Treat
504as unknown outcome. Re-read, never blindly retry. - On
409for a session or page conflict, look for a documented recovery action (disconnect) inactions[]. Don’t probe undocumented endpoints. - Never log, publish or put the token in a URL.