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(),
);
GuidePurpose
VisualTreeInspect the native UIKit/Android hierarchy and screenshots.
DOM InspectionInspect and query the WebView document; optionally invoke guarded actions.
DatabaseDiscover SQLite files, schema, and read-only queries.
FileSystemInspect and transfer files in approved roots.
PreferencesRead or repair approved preference keys.
SecureStorageAccess explicitly allowed secure values.
ReflectionInspect supported native roots.
Native Android JNI Reference Diagnosticsjni_references.capture_graph through native all-in-one defaults; there is no suite-specific JavaScript option.
Custom ToolsExpose 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.