disassemble_wasm
Disassemble WebAssembly binaries into WAT text and summarize imports and exports. Supports base64, hex, or URL sources.
Instructions
Disassemble a WebAssembly binary to text (wat) + summarize imports/exports.
Args:
wasm_source:
- if source_kind=='base64': base64-encoded wasm bytes
- if source_kind=='hex': hex-encoded wasm bytes
- if source_kind=='url': a URL to fetch the wasm from (uses the
active page so cookies / headers apply)
source_kind: see above.
generate_wat: if True, run wabt to produce WAT. Falls back to exports
+ imports only when wabt is unavailable.
auto_install_wabt: if True and wabt is missing, attempt npm i -g wabt.
Returns: dict with imports, exports, optional wat text, and entry-function candidates (for replay_vmp_offline).
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": {
"wasm_source": "<wasm_source>"
},
"name": "disassemble_wasm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_kind | No | base64 | |
| wasm_source | Yes | ||
| generate_wat | No | ||
| auto_install_wabt | No |