Change an instance auto stop
set_instance_auto_stopChange when a running or starting instance stops on its own. Extend max_runtime_minutes before starting a job that will outlast the current auto_stop_at (get_instance shows it), and set max_runtime_minutes and idle_shutdown_minutes on any instance you leave working unattended. Max runtime counts from when the instance started running, so pass the total minutes, not extra minutes; a change never stops it sooner than 2 minutes from now. Pass null to turn a limit off; leave a field out to keep it. Either limit terminates the instance (not paused). Returns the instance with its new auto_stop_at.
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": {
"id": "<id>"
},
"name": "set_instance_auto_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Instance ID, or its name if unique in the environment | |
| workspace | No | Workspace ID (optional: defaults to the authenticated workspace) | |
| environment | No | Environment name (optional: defaults to the environment this session acts in) | |
| max_runtime_minutes | No | Total minutes the instance may run, counted from when it started (5 to 10080). null turns max runtime off. | |
| idle_shutdown_minutes | No | Terminate after GPU utilisation stays under 5% with nobody connected (SSH, web terminal or editor) for this many minutes (5 to 1440). GPU instances launched with idle stop support only. null turns it off. |