Skip to main content

axag scan

Scan a live website or local source files for interactive elements, infer AXAG annotations, and enter interactive review.

Usage

axag scan <url|directory> [options]

Examples

# Scan a live URL
axag scan https://shop.example.com

# Scan local HTML/JSX files
axag scan ./src

# Scan with domain hint for better inference
axag scan https://shop.example.com --domain ecommerce

# Scan with AI-powered inference
axag scan https://app.example.com --ai --ai-provider openai --ai-model gpt-4o

# Scan without interactive review (batch mode)
axag scan https://app.example.com --no-interactive

# Scan with visible browser
axag scan https://app.example.com --no-headless

# Limit crawl depth
axag scan https://app.example.com --max-pages 5

Options

FlagDefaultDescription
-o, --output <dir>.axagOutput directory for results
-d, --domain <domain>auto-detectedDomain hint for inference (e.g., ecommerce, crm, analytics)
--headless / --no-headlesstrueBrowser visibility
--aifalseEnable AI-powered inference
--ai-provider <provider>openaiAI provider (openai, anthropic)
--ai-model <model>gpt-4oAI model to use
--max-pages <n>10Maximum pages to crawl
--interactive / --no-interactivetrueInteractive review mode

Interactive Review

During review, each annotation is presented with a before/after diff, confidence score, and reasoning. Available actions:

KeyActionDescription
AcceptKeep annotation as-is
RejectSkip this element
ModifyChange specific attribute values
SkipLeave as pending for later
✔✔Accept AllAccept all remaining annotations

When modifying, you can change any attribute: intent, entity, action type, risk level, parameters, etc.

Output

Results are stored in the output directory (default .axag/):

.axag/
├── report.json # Full structured scan results
├── report.html # Visual HTML report
└── annotations/ # Per-page annotation data