resume_site
Resume a suspended site on a specific server by providing the server ID and site ID. Restore access to a paused website with a single action.
Instructions
Resume a suspended site
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_id | Yes | The ID of the server | |
| site_id | Yes | The ID of the site to resume |
Implementation Reference
- src/tools/sites.ts:171-189 (registration)The 'resume_site' tool is registered on the MCP server via server.tool() with name 'resume_site', description 'Resume a suspended site', and input schema requiring server_id and site_id as numbers.
server.tool( "resume_site", "Resume a suspended site", { server_id: z.coerce.number().describe("The ID of the server"), site_id: z.coerce.number().describe("The ID of the site to resume"), }, async ({ server_id, site_id }) => { await client.resumeSite(server_id, site_id); return { content: [ { type: "text" as const, text: `Site ${site_id} on server ${server_id} has been resumed`, }, ], }; } ); - src/tools/sites.ts:178-189 (handler)The handler function for 'resume_site' calls client.resumeSite(server_id, site_id) and returns a text response confirming the site has been resumed.
async ({ server_id, site_id }) => { await client.resumeSite(server_id, site_id); return { content: [ { type: "text" as const, text: `Site ${site_id} on server ${server_id} has been resumed`, }, ], }; } ); - src/client.ts:180-185 (helper)The client.resumeSite() method makes a POST request to /servers/{serverId}/sites/{siteId}/resume on the Ploi API to resume a suspended site.
async resumeSite(serverId: number, siteId: number): Promise<void> { await this.request<void>( "POST", `/servers/${serverId}/sites/${siteId}/resume` ); }