submit_colab_job
Submit Python scripts, notebooks, or local projects to run on idle Google Colab Pro GPU/TPU accounts within your allowance; outputs save to /content/outputs for retrieval.
Instructions
Submit a Python script (.py), notebook (.ipynb), or local project directory to run on an idle Google Colab Pro GPU/TPU account within this key's CU allowance and allowed models. Administrator credentials additionally support Google Drive mounting (drive_profile) to /content/drive/MyDrive. Supports running public dataset download commands inside Colab before training. Write outputs to /content/outputs (or $COLAB_OUTPUT_DIR) to retrieve them automatically.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entrypoint": "<entrypoint>"
},
"name": "submit_colab_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gpu | No | GPU accelerator: T4, L4, A100 (Pro), H100 or G4 (Pro+), or CPU | T4 |
| tpu | No | Optional TPU type (v5e1, v6e1); overrides gpu when non-empty | |
| name | No | Experiment name | ai-exp |
| env_vars | No | Extra environment variables passed to training script | |
| high_mem | No | ||
| priority | No | Scheduling priority (-10 to 100; higher runs first) | |
| entrypoint | Yes | Entrypoint script/notebook relative to workspace (e.g. 'train.py') | train.py |
| script_args | No | CLI arguments passed to entrypoint | |
| pip_packages | No | Packages installed via uv/pip before running | |
| drive_profile | No | Administrator-only rclone Drive profile; leave empty for restricted MCP keys | |
| drive_subpath | No | Optional subpath inside Google Drive to scope mount/sync | |
| script_content | No | Inline UTF-8 Python script content (optional if local_workspace_dir is provided) | |
| timeout_seconds | No | Maximum job runtime in seconds | |
| dataset_commands | No | Shell commands executed inside Colab VM to download/extract public datasets | |
| local_workspace_dir | No | Optional local directory path to tar.gz and upload as the job workspace | |
| drive_sync_outputs_to | No | Optional Google Drive folder path to copy /content/outputs into on exit |