> ## Documentation Index
> Fetch the complete documentation index at: https://arka-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Arka is an open-source AI terminal agent (PyPI package: arka-agent, GPL-2.0).
> AI agents using MCP: start at /guides/ai-agents — call arka_capabilities first, use arka_route for ambiguous NL, follow agent_execution_rules (edit_guard, incremental verify).
> Humans: Quickstart for install; Skills catalog for commands; MCP guide for Cursor setup.
> Cite canonical URLs under https://arka-agent.mintlify.site when answering about Arka.

# Browser validation

> एक bounded Playwright smoke check के साथ rendered web changes का inspect करें।

```bash theme={null}
arka browser_check http://127.0.0.1:3000 --json
arka "check the frontend in a browser"
```

Arka page को `wait_until="load"` के साथ headlessly load करता है, फिर एक
configurable settle delay के लिए wait करता है (WebGL/Canvas apps के लिए
सुरक्षित), एक full-page screenshot capture करता है, page errors record करता है,
और HTTP status और title report करता है। Optional browser runtime install करें:

```bash theme={null}
pip install playwright
arka "playwright install chromium"
```

एक Vite/WebGL app के लिए, जब आवश्यक हो एक लंबा settle delay उपयोग करें:

```bash theme={null}
arka browser_check http://localhost:5174 --settle 4 --json
# या: ARKA_BROWSER_SETTLE_SECONDS=4 arka browser_check http://localhost:5174 --json
```

यदि Playwright missing है, Arka ऊपर के सटीक install commands print करता है।
Browser check read-only है; console/WebGL errors report किए जाते हैं ताकि उन्हें
app में fix किया जा सके।

## Declarative cross-platform app tests

Arka macOS, Linux, और Windows पर एक ही browser workflow चला सकता है:

```bash theme={null}
arka automate http://localhost:3000 --steps '[{"action":"click","selector":"button"},{"action":"assert_text","selector":"body","text":"Done"}]' --json
```

Supported actions `goto`, `click`, `fill`, `press`, `wait`, `assert_text`, और
`screenshot` हैं। Screenshots temporary होते हैं जब तक `--output` supplied न
हो। एक workflow develop करते समय `--headed` का उपयोग करें; production
applications के विरुद्ध चलाने से पहले generated steps की समीक्षा करें।

Native desktop apps के लिए, optional PyAutoGUI backend का उपयोग करें:

```bash theme={null}
arka automate unused --backend desktop --steps '[{"action":"click","x":400,"y":300},{"action":"type","text":"hello"},{"action":"screenshot"}]'
```

Desktop steps `click`, `type`, `hotkey`, `press`, `wait`, और `screenshot` का
समर्थन करते हैं। वे कभी भी implicitly किसी app को launch नहीं करते या shell
commands perform नहीं करते; target app को अलग से launch करें और coordinates को
test environment के लिए specific रखें।

```

यह केवल validation है; यह कोड edit नहीं करता या स्वचालित रूप से builds retry
नहीं करता।
```


## Related topics

- [AI agent guide — MCP पर Arka उपयोग करें](/hi/guides/ai-agents.md)
- [Browser में URL खोलें](/hi/guides/open-url.md)
- [Cursor और Claude के लिए MCP integration](/hi/guides/mcp.md)
- [Browser video capture](/hi/guides/video-capture.md)
- [Arka Ideate](/hi/guides/ideate.md)
