Tool: python_command_runner
Description: Tool to execute Python code in a subprocess and capture output.
Argument | Type | Description |
---|---|---|
code | str | The Python code to execute. |
timeout | int, optional | Timeout in seconds for the command. Defaults to 60. |
Returns | str | Output and status message, or file paths/line counts if output is large, or warning if code is empty. |
Example usage: python_command_runner(code="print('Hello')", timeout=10)
generated by janito.dev