Python Exec Sandbox
v0.1.5Sandboxed Python execution for AI agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
execute_python
Execute a Python script with automatic dependency management. The script can include PEP 723 inline metadata (# /// script blocks) for declaring dependencies. Additional dependencies can also be passed via the dependencies parameter and will be merged. Args: script: Python source code to execute. May include PEP 723 metadata. dependencies: Extra PEP 508 dependency specifiers to make available. timeout_seconds: Maximum execution time (1-300, default 30). Returns: Formatted output with stdout, stderr, exit code, and duration. Example - simple script: execute_python(scrip…
| Parameter | Type | Description |
|---|---|---|
script * | string | |
dependencies | ||
timeout_seconds | integer |
check_environment
Check the execution environment and report status. Returns information about Python version, uv version, platform, sandbox configuration, and cache status.
validate_script
Validate a Python script's PEP 723 metadata and dependencies without executing it. Checks metadata syntax, dependency format, and requires-python compatibility. Args: script: Python source code to validate. May include inline dependency metadata (# /// script blocks, see https://peps.python.org/pep-0723/). dependencies: Extra dependency specifiers to validate, using standard pip-style format like "requests>=2.28" (see https://peps.python.org/pep-0508/). Returns: Validation result with metadata details or error information.
| Parameter | Type | Description |
|---|---|---|
script * | string | |
dependencies |