instance_create
Create a GPU Notebook instance from catalog settings to run workloads, then monitor until ready and delete it when done to stop hourly credit use.
Instructions
创建 GPU Notebook 实例(每账户同时仅 1 个)。参数来自 catalog_list: env=环境/镜像,pod_type=资源池,resource_template=规格。
⚠️ 实例按小时消耗 credits(ready 后 1–2 分钟内扣首小时),用完即删; 不用时务必 instance_delete。use_pvc=true 挂载持久 /workspace(销毁后保留)。 ssh=true(默认)需先 instance_add_key 上传公钥,之后才能用 instance_exec 等工具。 wait=true 阻塞至 ready(通常 <1 分钟,大镜像数分钟);本地等待超时不代表创建失败, 用 instance_status 跟进。重试创建请带相同 idempotency_key(默认自动生成)。
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": {
"env": "<env>",
"pod_type": "<pod_type>",
"resource_template": "<resource_template>"
},
"name": "instance_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | Yes | ||
| ssh | No | ||
| wait | No | ||
| use_pvc | No | ||
| pod_type | Yes | ||
| idempotency_key | No | ||
| resource_template | Yes |