wasm_run_module
Run WebAssembly modules in memory via exported function calls. Pass Base64-encoded WASM binary and function name with optional numerical arguments to execute.
Instructions
Executes pre-compiled WebAssembly (.wasm) binary in memory with exported function calls
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": {
"wasmBase64": "<wasmBase64>",
"functionName": "<functionName>"
},
"name": "wasm_run_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Numerical arguments passed to function | |
| wasmBase64 | Yes | Base64-encoded WASM binary buffer | |
| functionName | Yes | Exported function name to call |