run_wasm
Execute WebAssembly (WASM) files with a specified path, directory, and timeout. Simplify running WASM code directly from the command line using the Onyx environment.
Instructions
Execute a WebAssembly (WASM) file using "onyx run file.wasm" command
Input Schema
Name | Required | Description | Default |
---|---|---|---|
directory | No | Directory to run the command from (defaults to current working directory) | . |
timeout | No | Execution timeout in seconds | |
wasmPath | Yes | Path to the WASM file to execute |
Input Schema (JSON Schema)
{
"properties": {
"directory": {
"default": ".",
"description": "Directory to run the command from (defaults to current working directory)",
"type": "string"
},
"timeout": {
"default": 10,
"description": "Execution timeout in seconds",
"type": "number"
},
"wasmPath": {
"description": "Path to the WASM file to execute",
"type": "string"
}
},
"required": [
"wasmPath"
],
"type": "object"
}