reboot_all_nodes
Restart all compute nodes in a CloudLab experiment to resolve issues or apply configuration changes. Specify the experiment ID to initiate the reboot process.
Instructions
Reboot all nodes in an experiment
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": {
"experiment_id": "<experiment_id>"
},
"name": "reboot_all_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| experiment_id | Yes | Experiment UUID (from list_experiments) |
Implementation Reference
- src/index.ts:334-348 (handler)The handler function for the 'reboot_all_nodes' tool. It extracts the experiment_id from arguments, makes a POST request to the CloudLab API endpoint `/experiments/{experiment_id}/nodes/reboot`, and returns the result in a formatted text response.
case "reboot_all_nodes": { const { experiment_id } = args as { experiment_id: string }; const result = await cloudlabRequest( `/experiments/${experiment_id}/nodes/reboot`, "POST" ); return { content: [ { type: "text", text: `Reboot initiated for all nodes: ${JSON.stringify(result, null, 2)}`, }, ], }; } - src/index.ts:174-183 (schema)The input schema for the 'reboot_all_nodes' tool, defining an object with a required 'experiment_id' string property.
inputSchema: { type: "object", properties: { experiment_id: { type: "string", description: "Experiment UUID (from list_experiments)", }, }, required: ["experiment_id"], }, - src/index.ts:171-184 (registration)The registration of the 'reboot_all_nodes' tool in the ListToolsRequestSchema handler, including name, description, and input schema.
{ name: "reboot_all_nodes", description: "Reboot all nodes in an experiment", inputSchema: { type: "object", properties: { experiment_id: { type: "string", description: "Experiment UUID (from list_experiments)", }, }, required: ["experiment_id"], }, },