run_command · Version: 1 · Category: System
Execute an explicitly approved process. sndbox classifies this node as side-effecting, so tests or automatic runs can require additional confirmation and permission review.
When to use this node
- Invoke a reviewed local program that has no dedicated node.
- Pass a structured argument list to a script and capture its exit result.
Example: Run a checked reporting script
Invoke Python directly with separate arguments instead of constructing a shell command.Example settings
- Select the exact executable and approved working directory.
- Put every flag and value in its own arguments item.
- Check exitCode before parsing stdout.
Configuration
Automatic runs require explicit permission review. The executable and arguments are passed separately.
Workflow JSON
The editor stores this node with the following implemented default configuration:Default node configuration
Inputs
Outputs
Execution behavior
- sndbox starts the executable directly; it does not concatenate arguments into a shell command.
- The output captures exitCode and the first 64 KiB each of stdout and stderr.
- The editor catalogue declares
stdout(string),stderr(string),exitCode(number) for mapping. The execution inspector can contain additional evidence fields; inspect a real result before selecting nested paths from object or any outputs.
Common issues
- Executables available in an interactive shell may not be on the desktop app’s PATH; prefer an explicit path.
- The current runner stops the child on cancellation but does not enforce the stored timeoutMs value. Ensure the program has its own bound and do not rely on this field until runtime enforcement is added.
Where it can run
- Desktop local runner
- Paired self-hosted runner
- Hosted runner