VM 정지
mold_stopVirtualMachineStop a virtual machine in ABLESTACK MOLD cloud infrastructure. Supports forced shutdown option and returns job ID for tracking.
Instructions
stopVirtualMachine(4.21). forced 옵션 지원. 반환에 jobid 포함 가능.
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": "mold_stopVirtualMachine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| forced | No |
Implementation Reference
- src/app/tools.js:139-142 (handler)Handler function that executes the tool by calling the generic MOLD API 'stopVirtualMachine' with provided arguments and returns the JSON response.
async (args) => { const data = await callApi("stopVirtualMachine", args); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } - src/app/tools.js:134-137 (schema)Input schema defining parameters: id (required string), forced (optional boolean).
inputSchema: { id: z.string(), forced: z.boolean().optional(), }, - src/app/tools.js:129-143 (registration)Registration of the 'mold_stopVirtualMachine' tool, including title, description, input schema, and handler function.
server.registerTool( "mold_stopVirtualMachine", { title: "VM 정지", description: "stopVirtualMachine(4.21). forced 옵션 지원. 반환에 jobid 포함 가능.", inputSchema: { id: z.string(), forced: z.boolean().optional(), }, }, async (args) => { const data = await callApi("stopVirtualMachine", args); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );