Analyze Javascript Application
analyze_javascript_applicationReconstruct a local ASAR or extracted JavaScript app as an inline application graph without executing it, recovering nodes, edges, semantic relations, integrity issues, and coverage.
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. Select a javascript-routes view with summary detail to query deduplicated static patterns, source-linked occurrences, source status or interpretation gaps with filters, fields and paging. Static routes do not establish reachability or the full application route set. 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. Timeout recovery: returned provider_timeout uses the per-source analysis_timeout_ms budget. A host-only 'timed out awaiting tools/call' needs a longer client tool deadline, not a larger analysis_timeout_ms. Never repeat the unchanged call to test whether that timeout persists; report the host setting if configuration is not editable (Codex: mcp_servers..tool_timeout_sec, seconds).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_path": "<input_path>"
},
"name": "analyze_javascript_application"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | ||
| detail | No | ||
| format | No | Declared input artifact format. | |
| input_path | Yes | Absolute path to the JavaScript application on the machine running REA. | |
| 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_unknowns | No | Maximum retained semantic unknown records across the application; defaults to 100000. Omitted emission occurrences are counted by family and reason. | |
| 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. | |
| max_semantic_unknowns_per_file | No | Maximum retained semantic unknown records per source file; defaults to 20000, additionally bounded by max_semantic_unknowns and memory/transfer limits. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subject | Yes | ||
| provider | Yes | ||
| authority | Yes | ||
| locations | Yes | ||
| operation | Yes | ||
| confidence | Yes | ||
| parameters | Yes | ||
| raw_result | Yes | ||
| environment | Yes | ||
| evidence_id | Yes | ||
| limitations | Yes | ||
| evidence_links | Yes | ||
| predicate_type | Yes | ||
| analysis_profile | Yes | ||
| caller_input_path | No | ||
| normalized_result | Yes | ||
| caller_input_paths | No | ||
| relationship_coverage | Yes |