colab_save_model
Save trained models by executing your model-saving code in a Colab runtime, with optional artifact registration for later retrieval.
Instructions
Run model-saving code in a runtime session, then (optionally) register the resulting file under a job's artifacts via colab_get_artifacts.
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": {
"code": "<code>"
},
"name": "colab_save_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| name | No | ||
| job_id | No | ||
| session_id | No | ||
| artifact_path | No | Path (relative to the artifact root) the code saved to. | |
| timeout_seconds | No |