Analyze Javascript Application
analyze_javascript_applicationReconstruct a local ASAR or extracted JavaScript app into an inline application graph without executing it, verifying integrity and returning nodes, edges, and coverage for selected source paths.
Instructions
Reconstruct one local ASAR or extracted JavaScript application as an inline application graph without executing it. Returns recovered graph nodes, edges, semantic relations, integrity contradictions, limitations, and coverage. Select source_paths to acquire and analyze only exact inventoried file paths; the complete artifact inventory and identity remain intact, and unselected sources remain explicit unknowns. Dependencies are not implicitly analyzed. Select detail summary to retain the complete analysis Evidence in this session and receive only its summary view, then inspect selected modules or pages with inspect_analysis_view. Summary detail reduces delivery, whereas source_paths bounds source analysis. Integrity mismatches fail by default; record-and-continue retains observed bytes as untrusted and marks graph coverage partial.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"format": "auto",
"input_path": "/Applications/Example.app/Contents/Resources/app.asar",
"integrity_policy": "fail"
},
"name": "analyze_javascript_application"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | full/complete returns the complete analysis Evidence inline. summary retains that complete Evidence in this session and returns its inspect_analysis_view summary; inspect pages, items or facets through normalized_result.parent_evidence_id. | |
| format | No | Declared input artifact format. | |
| input_path | Yes | Local filesystem path for input. | |
| max_heap_mb | No | Maximum V8 old-space heap in MiB for the isolated JavaScript source analyzer; defaults to 1024. This does not change the CLI/MCP process heap. When REA runs on Bun, which ignores V8 heap flags, Windows instead limits the analyzer's committed memory to this budget plus a 512 MiB runtime reserve; other Bun hosts enforce no limit. | |
| source_paths | No | Exact relevant file paths from the artifact inventory, relative to the application root, analyzed in first-request order before unselected scopes; no globs or implicit dependencies. Omit to analyze all sources. | |
| integrity_policy | No | ||
| max_semantic_nodes | No | Maximum retained semantic nodes across the application; defaults to 100000. Worker heap and parent result admission remain enforced. | |
| analysis_timeout_ms | No | Maximum startup, analysis and transfer time per JavaScript source, in milliseconds; defaults to 300000. On timeout, return collected partial Evidence and stop the analysis. | |
| max_semantic_nodes_per_file | No | Maximum retained semantic nodes per source file; defaults to 20000, additionally bounded by max_semantic_nodes and memory/transfer limits. |