blockrun_modal
Run isolated code in a disposable remote sandbox with optional GPU acceleration. Provides a clean ephemeral environment for running untrusted code.
Instructions
Run isolated code in a BlockRun-hosted Modal sandbox — disposable remote container, optional GPU.
Use when you need: a clean ephemeral environment, GPU access (T4/L4/A10G/A100/A100-80GB/H100), or a safer place for untrusted code. Prefer local tools for normal repo work.
Common paths (all POST):
sandbox/create — body: { image?, timeout?, cpu?, memory?, gpu?, setup_commands? } ($0.01)
sandbox/exec — body: { sandbox_id, command: ["python","-c","..."], timeout? } ($0.001)
sandbox/status — body: { sandbox_id } ($0.001)
sandbox/terminate — body: { sandbox_id } ($0.001)
Full action shapes + GPU type details in the modal skill.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Endpoint under /v1/modal/, e.g. 'sandbox/create', 'sandbox/exec' | |
| body | No | JSON body. Sent as POST. | |
| agent_id | No | Agent identifier for budget tracking and enforcement. |