Represents the result of a command execution, including output, exit code, and timing information.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/cloudflare/sandbox-sdk/llms.txt
Use this file to discover all available pages before exploring further.
Type Definition
Properties
Whether the command succeeded (exitCode === 0)
Process exit code. 0 indicates success, non-zero indicates failure.
Standard output content from the command
Standard error content from the command
Command that was executed
Execution duration in milliseconds
ISO 8601 timestamp when command started
Session ID if the command was executed in a specific session
Example Usage
Example: Error Handling
Example: Performance Monitoring
Notes
successis a convenience property derived fromexitCode- Empty stdout/stderr are represented as empty strings, not null
- Duration includes command execution time only, not parsing or network overhead
- Timestamp is in ISO 8601 format (e.g., ā2024-01-15T10:30:00.000Zā)
- Large outputs are fully captured (no truncation)
- Use streaming for real-time output processing
See Also
- exec - Execute commands
- execStream - Stream command output
- Process - Background process type