colab_execute
Execute Python code in a Google Colab runtime with guarded execution, configurable timeout, and output limits for safe, bounded operations.
Instructions
Execute guarded Python. Timeout may be ambiguous; use durable process_start for long work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python source executed through the runtime kernel. | |
| session | No | Tracked session name. Null is allowed only when exactly one session exists. | |
| timeout | No | Maximum wait in seconds; defaults to 900. | |
| lease_token | No | Opaque operation-bound lease from colab_allocation_probe. Null performs a fresh probe. | |
| output_limit | No | Maximum returned output bytes; defaults to 100,000. |