mort_run
Compile Mort source to a native binary and execute it with optional stdin, arguments, and timeout, capturing program output and compile errors.
Instructions
Compile Mort code to a native binary and run it, capturing its output.
Needs a C compiler (cc/gcc/clang, or pip install ziglang). stdin is
fed to the program, args are its command-line arguments, and it is
killed after timeout_s. Reports compile errors the same way mort_check does.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mort_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| files | No | ||
| stdin | No | ||
| source | No | ||
| opt_level | No | 0 | |
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |