Run all commands from the repository root. Use aom.py (Python) or aom.mjs (Node) as the main CLI.
Use this first; details and script-level commands are below.
| Task | Python | Node |
|---|---|---|
| Validate one input surface | python aom.py validate input --file examples/v0.1.0/login-single/login.aom.json |
node aom.mjs validate input --file examples/v0.1.0/login-single/login.aom.json |
| Validate one output | python aom.py validate output --file examples/v0.1.0/login-single/outputs/_login.success.output.json |
node aom.mjs validate output --file examples/v0.1.0/login-single/outputs/_login.success.output.json |
| Validate one site policy | python aom.py validate site --file .well-known/aom-policy.open.site.json |
node aom.mjs validate site --file .well-known/aom-policy.open.site.json |
| Validate all examples | python aom.py validate all --examples-dir examples/v0.1.0 |
node aom.mjs validate all --examples-dir examples/v0.1.0 |
| Create test outputs | python aom.py create-outputs |
node aom.mjs create-outputs |
| Demo agent | python aom.py demo run --lang python --folder v0.1.0/login-single --test-case _login.success.output |
node aom.mjs demo run --lang node --folder v0.1.0/login-single --test-case _login.success.output |
Paths: spec/v0.1.0/, examples/v0.1.0/. Full reference: COMMANDS.md.
Tooling is by language (Python or Node). Demo agents live under examples/v0.1.0/demo-agents/: python, node.
tools/
python/ validate/ create-outputs/
node/ validate/ create-outputs/
pip install -r tools/python/validate/requirements.txtnpm install in tools/node/validate/From repo root, if you need to call scripts directly instead of the CLI:
All examples:
python tools/python/validate/validate_all.py v0.1.0
node tools/node/validate/validate_all.js v0.1.0
Create outputs:
python tools/python/create-outputs/create_outputs.py
node tools/node/create-outputs/create_outputs.js
Demo agent:
python examples/v0.1.0/demo-agents/python/demo_agent.py --folder v0.1.0/login-single --test-case _login.success.output
node examples/v0.1.0/demo-agents/node/demo_agent.js --folder v0.1.0/login-single --test-case _login.success.output
Run demo-agent tests:
python -m pytest examples/v0.1.0/demo-agents/python/ -v
node --test examples/v0.1.0/demo-agents/node/demo_agent.test.js
Downloads (aom.tools): See AOM Tools downloads for the latest plugins, browser extension, and agent kits.
The AOM Surface Explorer is a companion Chrome/Chromium extension (shipped separately from this repo) that helps you see and export AOM surfaces directly from live pages.
<script type="application/ld+aom+json" id="aom-surface">…</script>spec/v0.1.0/aom-input-schema.json (required: automation_policy, aom_version, surface_id, surface_kind, generated_at, purpose, context, tasks, entities, actions, state, navigation, signals).#aom-surface from the active tab and lets you copy the JSON so you can:
examples/ for experimentation, orpython aom.py validate input --file ...node aom.mjs validate input --file ...The extension is a convenience for exploring pages; the CLI validators in this repo remain the source of truth for conformance to the AOM v0.1.0 schemas.