run_script
Launch a local Python script as a detached GPU VM job with periodic Drive checkpoints and automatic save/stop. Set detach to return immediately, then use job_status or attach_job to monitor.
Instructions
Run a local Python script on the active GPU VM as a detached managed job.
Restores previous files, uploads the script (or an explicitly selected source directory), checkpoints to Drive periodically with verified uploads, saves on exit, then stops by default. The job keeps running on the VM if this call is interrupted. With detach=true the call returns right after launch; follow with job_status or attach_job. Only workspace files are saved.
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": {
"script_path": "<script_path>"
},
"name": "run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detach | No | ||
| project | No | default | |
| arguments | No | ||
| stop_after | No | ||
| script_path | Yes | ||
| source_directory | No | ||
| checkpoint_seconds | No |