Back to catalog
Cortexa research tool·code data·python_executor
Python Script Runner
Run Python script files in isolated subprocess with resource limits and timeout. Supports command-line arguments and environment variables.
Livelast probed 2026-05-01 01:00Z· 91msCortexa
Status
The most recent probe succeeded. Safe to call from the agent today.
- Last probed
- 1d ago
- Last success
- 1d ago
- Last latency
- 91ms
Schema
JSON Schema the agent (or your API call) must match.
{
"properties": {
"auto_install_dependencies": {
"default": false,
"description": "Whether to automatically install missing dependencies without user confirmation",
"type": "boolean"
},
"dependencies": {
"description": "List of Python packages that the script depends on. Will be checked and optionally installed before execution.",
"items": {
"type": "string"
},
"type": "array"
},
"env_vars": {
"additionalProperties": {
"type": "string"
},
"description": "Environment variables to set for script execution",
"type": "object"
},
"require_confirmation": {
"default": true,
"description": "Whether to require user confirmation before installing packages",
"type": "boolean"
},
"script_args": {
"description": "Command-line arguments to pass to the script",
"items": {
"type": "string"
},
"type": "array"
},
"script_path": {
"description": "Path to Python script file (.py) to execute",
"type": "string"
},
"timeout": {
"default": 60,
"description": "Execution timeout in seconds",
"maximum": 600,
"minimum": 1,
"type": "integer"
},
"working_directory": {
"description": "Working directory for script execution (defaults to script directory)",
"type": "string"
}
},
"required": [
"script_path"
],
"type": "object"
}Examples (1)
Default Python Script Runner call
public-safeinput
{
"auto_install_dependencies": false,
"dependencies": [],
"require_confirmation": false,
"script_args": [],
"script_path": "",
"timeout": 1
}Expected response keys: success
Anonymous-safe example. Rate-limited; no sign-in required.
Identifiers
- Catalog ID
- tu_python_script_runner
- Tool name
- python_script_runner
- Added
- 2026-05-01 00:58Z
- Tags
- tooluniverse