Tools
Configure Cordova/Capacitor DOM inspection, native tool suites, artifacts, and JavaScript custom tools behind a runtime guard.
Cordova/Capacitor combines WebView DOM tools registered in JavaScript with standard native iOS and Android suites.
await Ansight.initializeAndActivate(
Ansight.createOptionsBuilder()
.withAnsightDefaults()
.withReadOnlyToolAccess()
.withDomTools()
.withVisualTreeTools()
.withDatabaseTools()
.build(),
);
| Guide | Purpose |
|---|---|
| VisualTree | Inspect the native UIKit/Android hierarchy and screenshots. |
| DOM Inspection | Inspect and query the WebView document; optionally invoke guarded actions. |
| Database | Discover SQLite files, schema, and read-only queries. |
| FileSystem | Inspect and transfer files in approved roots. |
| Preferences | Read or repair approved preference keys. |
| SecureStorage | Access explicitly allowed secure values. |
| Reflection | Inspect supported native roots. |
| Native Android JNI Reference Diagnostics | jni_references.capture_graph through native all-in-one defaults; there is no suite-specific JavaScript option. |
| Custom Tools | Expose narrow JavaScript operations. |
All tools remain subject to the active tool guard. Keep tool registration inside a trusted development-build guard.
Native catalog entries expose current availability, unmet state, remediation, and retryability through runtime, with a top-level executable flag. The native runtime rechecks availability immediately before execution. JavaScript-backed DOM and custom tools are considered available while registered because the JavaScript registration API does not currently expose a pre-invocation availability callback.