run_script
Execute Python code in a subprocess with timeout control, returning stdout, stderr, and exit code for debugging.
Instructions
Execute Python code and return the result.
Args: code: Python code to execute timeout: Execution timeout in seconds (default: 30)
Returns: JSON string with success, stdout, stderr, error, and return_code
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |