Run Script
run_scriptExecutes 010 Editor .1sc scripts headlessly, optionally against a data file, to automate binary parsing and return controlled exit codes.
Instructions
Run a 010 Editor Script (.1sc), optionally on a data file.
Uses: 010editor [data] -script:.1sc -noui -nowarnings -<exit_mode> Cwd is the script's parent directory.
Scripts can call RunTemplate("foo.bt") and Exit(n) for custom codes.
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": {
"script_file": "<script_file>"
},
"name": "run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_file | No | ||
| exit_mode | No | exitnoerrors | |
| script_args | No | ||
| script_file | Yes | ||
| timeout_sec | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||