Recover Javascript Sources
recover_javascript_sourcesRecovers readable modules and source maps from local UTF-8 JavaScript scripts or bundles into an absent output directory without executing application code.
Instructions
Recover readable modules from local UTF-8 JavaScript scripts/bundles into an absent directory, using caller-supplied Wakaru ^1.13.0 (verified with 1.14.0) on Linux x64. Use additional_paths for related chunks; each input retains its own snapshot and provenance. Returns original/derived digests, extraction byte ranges, emitted source maps, warnings and analysis_input inline. Structural splitting may fall back to one module; original names and runtime equivalence remain unknown. No application code execution. Requires util-linux prlimit; one worker, 1 GiB address-space ceiling, 120-second deadline, 64 MiB total input, 128 MiB output, 10000 entries and 8 MiB per diagnostic/report stream.
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": {
"path": "/tmp/web-scripts/app.js",
"output_directory": "/tmp/recovered-app"
},
"name": "recover_javascript_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a UTF-8 JavaScript file; never executed | |
| rewrite_level | No | Upstream syntax recovery level; runtime equivalence remains unverified | |
| extraction_mode | No | Structural module boundaries, heuristic fallback, or finer inspection-only regions | |
| additional_paths | No | Additional absolute UTF-8 JavaScript files recovered together with path; each is snapshotted separately so imports can resolve across related chunks. All inputs share a 64 MiB total budget | |
| output_directory | Yes | Absolute absent output directory; parent must exist |