mcp-wayback-machine
Version:
MCP server and CLI tool for interacting with the Wayback Machine without API keys
30 lines • 1.02 kB
TypeScript
/**
* * List Screenshots tool — finds captures that have screenshots via CDX cross-reference.
*/
import * as z from "zod";
import type { ToolContext } from "./context.ts";
export declare const ListScreenshots: z.ZodObject<{
url: z.ZodURL;
limit: z.ZodDefault<z.ZodInt>;
}, z.core.$strip>;
export type ListScreenshots = z.input<typeof ListScreenshots>;
interface ScreenshotResult {
timestamp: string;
date: string;
screenshotUrl: string;
originalUrl: string;
}
interface ListScreenshotsResult {
success: boolean;
message: string;
totalScreenshots: number;
screenshots?: ScreenshotResult[];
}
/**
* List available screenshots for a URL by cross-referencing the CDX API.
* Screenshots are stored at web.archive.org/screenshot/{url}/* and are
* generated when captures are made with capture_screenshot=1.
*/
export declare function listScreenshots(input: ListScreenshots, ctx: ToolContext): Promise<ListScreenshotsResult>;
export {};
//# sourceMappingURL=screenshots.d.ts.map