Key Features
- Python 3.11+ - Full Python stdlib
- JavaScript/Node.js - Modern ES6+ support
- Sandboxed - Isolated from system and other sessions
- 30-second timeout - Prevents runaway code
- No Network Access - Isolated from external services
- Input/Output Handling - Pass data to code and capture results
- No Dependencies - Core libraries only (upgrade to Sandbox for pip/npm)
How to Enable
For Agents
- Agents > Select Agent > Settings > Capabilities
- Attach Code Runner
For MCP Gateways
- Gateways > Select Gateway > Capabilities
- Attach Code Runner
Usage Examples
Python Calculation
JavaScript Data Processing
JSON Parsing
Input/Output
Pass Data to Code
Return Structured Data
Available Libraries
Python Standard Library
- json, csv, re, datetime, math, statistics
- collections, itertools, functools
- hashlib, urllib, base64
- logging, pprint, sys, os (limited)
JavaScript Standard Library
- All ES6+ features
- JSON, Math, Date, RegExp
- Array methods, String methods
- No external npm packages
Resource Limits
Limitations
- No network access
- No file I/O (use Files capability instead)
- No package installation (use Sandbox for pip/npm)
- No background processes
- No system calls