powercycle_node
Perform a hard reboot of a CloudLab experiment node to resolve unresponsive states or apply hardware-level resets.
Instructions
Power cycle a node (hard reboot)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| experiment_id | Yes | Experiment UUID (from list_experiments) | |
| node | Yes | Node client_id |
Implementation Reference
- src/index.ts:369-386 (handler)Handler implementation for the 'powercycle_node' tool. Extracts experiment_id and node from input arguments, sends a POST request to CloudLab API `/experiments/{experiment_id}/node/{node}/powercycle`, and returns the formatted result.case "powercycle_node": { const { experiment_id, node } = args as { experiment_id: string; node: string; }; const result = await cloudlabRequest( `/experiments/${experiment_id}/node/${node}/powercycle`, "POST" ); return { content: [ { type: "text", text: `Power cycle initiated for node ${node}: ${JSON.stringify(result, null, 2)}`, }, ], }; }
- src/index.ts:203-221 (registration)Tool registration in list_tools response, defining name, description, and input schema for 'powercycle_node' requiring experiment_id and node.{ name: "powercycle_node", description: "Power cycle a node (hard reboot)", inputSchema: { type: "object", properties: { experiment_id: { type: "string", description: "Experiment UUID (from list_experiments)", }, node: { type: "string", description: "Node client_id", }, }, required: ["experiment_id", "node"], }, }, {