restart-application
Restart a specific application by its UUID to apply configuration changes. This tool stops and then starts the application, ensuring updates are implemented.
Instructions
Restart a specific application using its UUID. This stops and then starts the application, applying any configuration changes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Resource UUID |
Implementation Reference
- src/index.ts:213-222 (handler)Handler for restart-application tool: parses UUID, calls Coolify API to restart the application at `/applications/${uuid}/restart`, and returns the JSON result.case "restart-application": { const { uuid } = UuidSchema.parse(request.params.arguments); const result = await coolifyApiCall(`/applications/${uuid}/restart`); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; }
- src/index.ts:50-52 (schema)UuidSchema defines the input schema for the restart-application tool, requiring a 'uuid' string.const UuidSchema = z.object({ uuid: z.string().describe("Resource UUID"), });
- src/index.ts:108-112 (registration)Registration of the restart-application tool in the ListTools response, including name, description, and input schema.{ name: "restart-application", description: "Restart a specific application using its UUID. This stops and then starts the application, applying any configuration changes.", inputSchema: zodToJsonSchema(UuidSchema), },