pyodide_execute
Execute Python code in a browser environment with output capture. Automatically saves generated images to a specified directory, providing file paths for access. Ideal for server-side Python execution via LLMs.
Instructions
Execute Python code using Pyodide with output capture. When generating images, they will be automatically saved to the output directory instead of being displayed. Images can be accessed from the saved file paths that will be included in the output.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code | Yes | Python code to execute | |
timeout | No | Execution timeout in milliseconds (default: 5000) |