switch_mode
Switch an AutoDL instance between GPU and no-GPU modes by confirming shutdown, restarting in the target mode, and returning a background task ID.
Instructions
切换 GPU/无卡模式,立即返回后台任务 ID:关机、确认关机、按目标模式重新开机。会中断运行任务,重新开机会计费;执行前必须确认。无卡目标仅支持按量计费。不是可回滚事务;失败或取消可能停在关机状态,不自动恢复。任务不跨服务重启恢复。
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": {
"instance_uuid": "<instance_uuid>"
},
"name": "switch_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_mode | No | gpu | |
| instance_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||