Compare Javascript Export Shapes
compare_javascript_export_shapesCompares static return-property shapes for the same JavaScript module export across two authenticated application graphs, reporting JSON Pointer additions and removals without executing code.
Instructions
Compare static return shapes for one exact module/export selector on each authenticated JavaScript Application Graph supplied as inline Evidence or exact same-session retained references. Variants pair only by reciprocal unique literal discriminants. Each retained variant lists observed return-property names even when values stay unknown. Presence (present, absent, or unknown-coverage) is separate from value resolution: a name present on only one paired shape is added or removed when parent-property coverage is complete on both sides, including when the static value is unresolved. Dynamic values, incomplete parent coverage, and unpaired variants remain unknown. Reports JSON Pointer changes without executing JavaScript; runtime behavior requires a separate agent-run probe.
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": {
"left": {
"kind": "retained-evidence",
"evidence_id": "ev_4765fd4d9759fef74a86e517349e3cc8292dd9d17b2544d40eddc6c7693341a1"
},
"right": {
"kind": "retained-evidence",
"evidence_id": "ev_63d875a91fea7479b1dc9d31ad7e7ee41bc5b7b15f0b3e687f5cae087c29a236"
},
"left_export_name": "default",
"left_module_path": "parser.mjs",
"right_export_name": "default",
"right_module_path": "parser.mjs"
},
"name": "compare_javascript_export_shapes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| left | Yes | Left-hand input used for comparison or differential execution. | |
| right | Yes | Right-hand input used for comparison or differential execution. | |
| left_export_name | Yes | ||
| left_module_path | Yes | Local filesystem path for left module. | |
| right_export_name | Yes | ||
| right_module_path | Yes | Local filesystem path for right module. |