list_snapshots
Retrieve available configuration snapshots for workflows to review changes and restore previous states. Snapshots capture workflow configurations before API updates.
Instructions
List available config snapshots for a workflow. Snapshots are automatically captured before every external API update, allowing you to restore a previous configuration. Returns snapshot ID, timestamp, and which fields were changed.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes | The workflow ID |
Implementation Reference
- src/tools/workflows.ts:187-195 (handler)The MCP tool handler for 'list_snapshots' which delegates to the client.
async ({ workflowId }, extra) => { const client = clientFactory(extra); const result = await client.listSnapshots(workflowId); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2), }], }; - src/client.ts:136-138 (helper)The client method that performs the actual network request to fetch snapshots.
async listSnapshots(workflowId: string) { return this.request(`/workflows/${workflowId}/snapshots`); } - src/tools/workflows.ts:179-186 (registration)Registration of the 'list_snapshots' MCP tool.
server.tool( 'list_snapshots', `List available config snapshots for a workflow. Snapshots are automatically captured before every external API update, allowing you to restore a previous configuration. Returns snapshot ID, timestamp, and which fields were changed.`, { workflowId: z.string().describe('The workflow ID'), },